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

Incorrect draggedTrackPos X coordinate value during DnD Track

Open RomanSuvorov opened this issue 3 years ago • 0 comments

When drag track to the new position, draggedTrackPos X should be set like start of rect this.trackRef.current, not a clientX. This produces bug, when track goes faster, than mouse this do.

https://github.com/tajo/react-range/blob/2a634cd56b40710fa9519fd20bb6385302a51045/src/Range.tsx#L476

https://codesandbox.io/s/react-range-forked-6izpe3?file=/src/index.js

RomanSuvorov avatar Jan 19 '23 17:01 RomanSuvorov