Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
kchr
1y ago
0 comments
Share
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.
0 comments
default
newest
oldest
wruza
1y 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...
j
/
k
navigate · click thread line to collapse