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

Created on 25 Jun 2020  路  5Comments  路  Source: casesandberg/react-color

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

Most helpful comment

Ditto. Rolling back to 2.17.3 helped.

All 5 comments

Ditto. Rolling back to 2.17.3 helped.

Same problem. I was forced to use onChange to replace onChangeComplete銆俆hen write the debounce function in it.

I confirm this. Have to stay on 2.17.3.

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?

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

YashalShakti picture YashalShakti  路  3Comments

daKmoR picture daKmoR  路  5Comments

scottbarrow picture scottbarrow  路  6Comments

redguardtoo picture redguardtoo  路  4Comments

imsheng picture imsheng  路  6Comments