Event for getting current position
See original GitHub issueI have implemented some dnd stuff myself and found that I really wish for a way to retrieve the current position while dragging, so that I can potentially reconfigure the dragged element to be position: absolute;. I know you’re using translate3d, but that would work the same way. Maybe an event on every movement would be overkill.
I also thought about a separate dropzone for whiteboard-like absolute positioned dnd and then just changing the drag-elements type when dragging it over a different dropzone. Then just react to data changes.
🤔
Issue Analytics
- State:
- Created 3 years ago
- Comments:14 (7 by maintainers)
Top Results From Across the Web
Get the current position of the mouse from a JavaScript event
To get the current mouse position we are going to trigger a mouse event. In this case we will use 'mousemove' to log...
Read more >How to get the mouse position without events (without moving ...
Step 1: Consider the whole screen as the starting search area · Step 2: Split the search area into 2 x 2 =...
Read more >Getting the current mouse position - plainJS
To get the current position of the mouse, attaching an event handler to any mouse action is required. The mouse's position is reported...
Read more >Geolocation.getCurrentPosition() - Web APIs | MDN
The Geolocation.getCurrentPosition() method is used to get the current position of the device.
Read more >Change Log – Binance API Documentation - GitHub Pages
New endpoint GET /fapi/v1/pmExchangeInfo to get current Portfolio Margin ... Balance and Position Update event ACCOUNT_UPDATE add new event reason type m as ......
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 Free
Top 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

@Florian-Schoenherr you might find this conversation relevant.
this type of “whiteboard” drop zone makes different assumptions than a sortable dropzone. For example, a sortable dropzones assumes elements can’t overlap (the centre of the dragged element can never be over two elements at the same time). In a white board they can, which brings the stacking order into the equation (which element should be drawn on top of which etc.). Keyboard interactions might also be different, as well as aria labels and messages. This mix might be possible though with some tinkering, assuming your app implements the whiteboard part. The tricky part is of course crossing the border of the whiteboard in and out (each one requires a different handover)