Hacker News new | ask | show | jobs
by wruza 641 days ago
It’s called a cursor grab and in the web exists as el.setPointerCapture().

https://developer.mozilla.org/en-US/docs/Web/API/Element/set...