scttcper / ngx-color

🎨 Color Pickers from Sketch, Photoshop, Chrome, Github, Twitter & more
https://ngx-color.vercel.app
MIT License
436 stars 55 forks source link

inconsistent behavior color-slider #331

Open kailo777 opened 3 years ago

kailo777 commented 3 years ago

Hello together,

I currently facing the problem that the selection of the slider-swatches failes when I update the input value for the slider via the updated value I got from the slider.

Steps to reproduce:

Click on the second darkest slider-swatches and then click the darkest slider-swatches. Now the field you selected should be selected and deselected again.

Example:

[ color-slider ]([]() )

APP URL: https://ngx-color-test.stackblitz.io

Code: https://stackblitz.com/edit/ngx-color-test?file=src/app/hello.component.html

Imo it's a rounding problem and a possible fix would be to increase the tolerance value for the HSLA value s.