Skip to content

Saturation Pointer doesn't move after hsva is updated elsewhere #176

@zaytri

Description

@zaytri

This is specifically using the Saturation component.

I've noticed this bug also happens on the React Color website, on the main page with all the components, so it's an issue with the Saturation component itself rather than my own setup.

This only happens after having used the mouse to move around the color in Saturation.

Once that's been done, then when hsva is updated by any other means, even though the gradient is correct and the color in the Pointer is correct, the Pointer does not move even when it should.

To reproduce:

  1. Go to https://uiwjs.github.io/react-color/ and drag around the Pointer in one of the Saturation components using your mouse.
  2. Use any other color control to change color, easiest way to notice the bug is by moving around the Pointer in a different Saturation component.
  3. The pointer that was moved previously does not move, even though the others that haven't been mouse controlled do move.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions