Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
kchr
1y ago
0 comments
Save
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
1 comments · 1 top-level
top
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