Optional
Instead of firing an event on the target, we add it to the moveable control element. You can use click and clickGroup events. Add an event to the moveable area instead of the target for stopPropagation.
if group, true, else fals Copy
if group, true, else fals
import Moveable from "@moveable-next/vanilla";const moveable = new Moveable(document.body, { dragArea: false,}); Copy
import Moveable from "@moveable-next/vanilla";const moveable = new Moveable(document.body, { dragArea: false,});
Set pointerEvents: none; css to pass events in dragArea.
pointerEvents: none;
false Copy
false
Instead of firing an event on the target, we add it to the moveable control element. You can use click and clickGroup events. Add an event to the moveable area instead of the target for stopPropagation.