feat(hud): long press collapses or expands the HUD, locking becomes an option (#2723)

* feat(hud): long press collapses or expands the HUD, locking becomes an option

* fix(hud): keep the collapsing tab at the press point while layout runs

The layout listener could run keepOnScreen during the dock animation and replace the press-centered target with the anchored edge position, which was then saved as the tab position. The dock animation now holds the same guard the other HUD animations use until the dock is committed.
This commit is contained in:
Kurt Himebauch authored and GitHub committed 2026-11-16 15:29:17 -05:00
1 parent 8e514ada62
commit fde3089900
41 files changed
+369 -51

No files matched your search

+4 -1
View File
@@ -738,7 +738,10 @@
<string name="hud_size_mega">Mega</string>
<string name="hud_size_strip">Strip</string>
<string name="hud_locked">Lock in place</string>
<string name="hud_locked_hint">Drag the HUD to move it; a long press locks or unlocks it. While it is locked, on-screen controls under it still work.</string>
<string name="hud_locked_hint">Drag the HUD to move it. While it is locked, on-screen controls under it still work.</string>
<string name="hud_hold">Long press</string>
<string name="hud_hold_collapse">Collapse or expand</string>
<string name="hud_hold_lock">Lock or unlock</string>
<string name="hud_snap">Snap to sides</string>
<string name="hud_snap_hint">Let go of the HUD and it moves to the nearer side of the screen. A flick throws it that way.</string>
<string name="hud_group_look">Look</string>