Y
Hacker News
new
|
ask
|
show
|
jobs
by
kchr
640 days ago
This could probably be fixed by tracking whether the mousedown event was started inside or outside the dialog, and only close the dialog if the mousedown started outside it.
1 comments
wruza
640 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...
link
https://developer.mozilla.org/en-US/docs/Web/API/Element/set...