This repository has been archived by the owner on Jan 5, 2023. It is now read-only.
Replies: 1 comment 4 replies
-
Hi @a-gagnon, Have you tried using the const [isDragging, setIsDragging] = React.useState(false);
return (
<Slider
// ...
onUpdate={() => setIsDragging(true)}
onChange={() => setIsDragging(false)}
/>
); Also we forward the |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I noticed whenever a thumb is being dragged there is the
iui-grabbing
andiui-active
classes that get added to the slider container and slider thumb div respectively. Is there a way to get a callback whenever the drag starts/ends? (TheonChange
might do the trick for dragEnd.)My current workflow involves periodically updating the value of the slider (using a timer), and I would like to stop that while the cursor is being held by the user.
Thanks!
Alex
Beta Was this translation helpful? Give feedback.
All reactions