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

Bumping react-color from 2.17.3 to 2.18.1 is really slowing the drag down

Open dmgauthier opened this issue 4 years ago • 5 comments

colorPicker

The Dragging functionality of the color map and the slider is obviously slowed down. It looks like I'm clicking to move the selector, but I'm actually dragging it, and it has almost a 1000ms of delay

dmgauthier avatar Jun 25 '20 20:06 dmgauthier

Ditto. Rolling back to 2.17.3 helped.

nathanwaters avatar Aug 14 '20 08:08 nathanwaters

Same problem. I was forced to use onChange to replace onChangeComplete。Then write the debounce function in it.

lovefengruoqing avatar Aug 28 '20 06:08 lovefengruoqing

I confirm this. Have to stay on 2.17.3.

dmitriy-komarov avatar Sep 01 '20 14:09 dmitriy-komarov

any updates on this? is it "works as designed" and one should work around it with debouncing onChange or stay on the 2.17.x version?

mutefiRe avatar Feb 17 '21 07:02 mutefiRe

Same here, only 2.17.3 works properly for me currently. Weirdly enough the docs on https://casesandberg.github.io/react-color/ work fine for me.

Here is a demo that shows this issue using the latest (2.19.3) version. https://codesandbox.io/s/react-color-bug-qd4ku?file=/src/App.tsx

ls-sam-leatherdale avatar May 11 '21 06:05 ls-sam-leatherdale