mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-27 19:38:13 +08:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user