Click triggers dragStart event which moveable dispatches
See original GitHub issueEnvironments
- Framework name: plain javascript
- Framework version:
- Moveable Component version: latest
- Testable Address(optional):
Description
It seems to me that clicking on moveable target triggers dragStart event which moveable dispatches. If it’s true, I prefer clicking on moveable target element does not trigger dragStart event. How can I do that? Thanks in advance.
Movie below is my example.
dragStart
event handler changes element’s opacity. You can see that only clicking fires dragStart
event.
Issue Analytics
- State:
- Created 10 months ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Issues · daybrush/moveable - GitHub
Trigger Resize Event on the corner Scaling Buttons renderDirections: ['nw', 'ne', ... Click triggers dragStart event which moveable dispatches complete ...
Read more >simulate a 3 pixel drag on draggable elem - javascript
You have to trigger the right sequence using EventTarget.dispatchEvent() . I guess that you combine "HTML Drag and Drop API" with "Mouse events" ......
Read more >HTMLElement: dragstart event - Web APIs | MDN
The dragstart event is fired when the user starts dragging an element or text selection.
Read more >Moveable - Documentation - Daybrush
Moveable - Documentation. ... You can drag start the Moveable through the external `MouseEvent`or ... Whether to trigger the moveable's click event.
Read more >Android Drag and Drop Tutorial: Moving Views and Data
To do this, you set a long-click listener on the mask view that triggers the drag start. Create ClipData and ClipData.Item, which represent...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@kotarofunyu
moveable’s new version is released. Check it again.
The dragStart event is inevitably triggered on mousedown (click).