question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Event for getting current position

See original GitHub issue

I 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:open
  • Created 3 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
isaacHagoelcommented, Jan 17, 2021

@Florian-Schoenherr you might find this conversation relevant.

1reaction
isaacHagoelcommented, Jan 14, 2021

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)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found