moveable
moveable copied to clipboard
How can I stop Dragging?
Environments
- Framework name: vue
- Framework version: vue 2.5.22
- Moveable Component version: 0.27.3
Description
In my situation, I need to delay the dragStart when mouse down, but the moveable prevents the mouseup event, so I can't cancel delay. And the result is that the moveable can still move even if the mouse is not pressed. so i need to trigger dragend when moveable is dragging.
@ZRichV
There is an e.stop() function in the dragStart event. When called, the dragging stops. However, there is no blocking event in the drag event.
@Frhazz
Oh, use stopDrag
function property
@daybrush I needed to upgrade, I'm getting stopDrag
now, all good :)
Thanks for this great lib btw!
@daybrush i have related question. how can force stop dragging from outside?
stopDrag
is not the case when mouse goes to iframe, no events fired.
i had hacky solution with firing dragEnd
event, but it is not working on never version.
is where a proper way to do that?
@cherepanov
Please add it as a separate issue. It will be supported in the next version.