Hide cursor while dragging number inputs in Safari to approximate PointerLock, and disable it on desktop (#3425)

* Make pointerlock conditional and opt out on Safari and desktop

* Add Safari workaround
This commit is contained in:
Keavon Chambers
2025-11-27 00:12:58 -08:00
committed by GitHub
parent 8383a3afac
commit ab5c87f017
4 changed files with 134 additions and 82 deletions
+4
View File
@@ -223,6 +223,10 @@
user-select: none;
}
body.cursor-hidden * {
cursor: none !important;
}
// Needed for the viewport hole punch on desktop
html:has(body > .viewport-hole-punch),
body:has(> .viewport-hole-punch) {