simple-color-picker icon indicating copy to clipboard operation
simple-color-picker copied to clipboard

Horizontal Hue

Open FirstVertex opened this issue 4 years ago • 1 comments

I had a requirement for a horizontal hue selector. I attempted using CSS transform, but the mouse drag didn't work. Any way we can have an api option for that?

FirstVertex avatar Dec 10 '20 19:12 FirstVertex

Yes beside making changes to the CSS you would have to update the logic a bit. I don't have time nor the need to implement this feature but I'm open for a Pull Request though. If you want to have a look at it you would have to change things in all the hue related functions :

https://github.com/superguigui/simple-color-picker/blob/master/src/ColorPicker.ts#L311-L327 https://github.com/superguigui/simple-color-picker/blob/master/src/ColorPicker.ts#L370-L396 https://github.com/superguigui/simple-color-picker/blob/master/src/ColorPicker.ts#L177 https://github.com/superguigui/simple-color-picker/blob/master/src/ColorPicker.ts#L153-L154

superguigui avatar Dec 11 '20 10:12 superguigui