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

Dragging outside of the color picker stops updating the color

Open gkiely opened this issue 1 year ago • 1 comments

In react-color if you click and drag outside of the color picker, it still updates the color. In color-picker the updating stops and the picker freezes.

Example: https://www.loom.com/share/8bc6a40a304944578008b01649638142

gkiely avatar May 07 '23 16:05 gkiely

I believe it needs to be updated to use document instead of a reference to the picker. https://github.com/hello-pangea/color-picker/blob/main/packages/color-picker/src/components/common/Saturation.tsx#L45

The calculate change method also needs to be updated. https://github.com/hello-pangea/color-picker/blob/main/packages/color-picker/src/helpers/saturation.js

gkiely avatar May 07 '23 16:05 gkiely