daybrush / moveable

Moveable! Draggable! Resizable! Scalable! Rotatable! Warpable! Pinchable! Groupable! Snappable!
https://daybrush.com/moveable/
MIT License
10.09k stars 618 forks source link

Slider or draggable element in a Moveable Component #628

Open William-Depix opened 2 years ago

William-Depix commented 2 years ago

Environments

Description

If I have a slider, colour wheel or any other elements that react to drag events in a component that is being targeted by Moveable, is there any way to pass the event to those elements and prevent the component from moving? Or is there any workaround to at least pass those events so that I know those elements are being attempted to drag so that I can set <Moveable draggable={false}> to prevent the Moveable component from moving?

daybrush commented 2 years ago

@William-Depix

If all ables are disabled, drag events are not blocked on child-elements.