-
-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hue resetting when dragging saturation to extreme #176
Comments
I have the exact same problem. |
I've found a temporary solution: Use vanilla-colorful instead of react-colorful.
And to add the color changed event listener, simply do this:
Hope it helps for now! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, thanks for the great library!
I'm using it with Preact, and I noticed an issue where dragging the saturation slider all the way to a corner (
#fff
or#000
) often resets the hue to0
(red):I can't seem to reproduce it with the React-based examples (like the library homepage), but it happens with a minimal Preact-based setup:
I also noticed the hue slider wiggling around a bit as the saturation is changed.
Sometimes the issue happens immediately, sometimes I need to drag the hue slider a bit first. It may also take some wiggling back and forth of the saturation slider before it happens. Anecdotally, it seems to happen more frequently with the DevTools window open, so I wondered if it might be a timing issue.
I set up an example page/repo here:
https://alundeen.github.io/react-colorful-hue-issue/
https://github.com/alundeen/react-colorful-hue-issue
I was wondering if this is something you've seen before? Thanks!
The text was updated successfully, but these errors were encountered: