logoalt Hacker News

panzitoday at 11:53 AM1 replyview on HN

Register the mousemove event handler on window, then you will still get the events when the mouse moves out of the window/frame while dragging and it won't be that buggy.


Replies

DaanDLtoday at 12:04 PM

Was about to comment the same. It's a common mistake/gotcha.

show 1 reply