fix(controller): keep controls open while hovered

This commit is contained in:
joshpatra committed 2026-07-16 02:10:56 -04:00
1 parent 2adafb51f2
commit f10818964c
3 files changed
+112 -1

No files matched your search

+5
View File
@@ -44,6 +44,7 @@
after a mouse click kept #controls visible while hover-only rules (e.g. draggable
margin) turned off when the pointer left the bar. */
#controller:hover #controls,
#controller.vsc-controls-hovered #controls,
#controller:focus-within:has(:focus-visible) #controls,
:host(:hover) #controls {
display: inline-flex;
@@ -85,6 +86,10 @@
margin-right: 5px;
}
#controller.vsc-controls-hovered > .draggable {
margin-right: 5px;
}
/* Center presets: midpoint between left- and right-preset inset lines; center bar on that X. */
#controller[data-location="top-center"]:not([data-position-mode="manual"]) {
transform: translate(-50%, 0) !important;