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
@@ -708,7 +708,10 @@
<string name="hud_size_mega">Mega</string>
<string name="hud_size_strip">Thanh</string>
<string name="hud_locked">Khóa vị trí</string>
<string name="hud_locked_hint">Kéo HUD để di chuyển; nhấn giữ để khóa hoặc mở khóa. Khi đã khóa, các nút điều khiển trên màn hình bên dưới vẫn hoạt động.</string>
<string name="hud_locked_hint">Kéo HUD để di chuyển. Khi đã khóa, các nút điều khiển trên màn hình bên dưới vẫn hoạt động.</string>
<string name="hud_hold">Nhấn giữ</string>
<string name="hud_hold_collapse">Thu gọn hoặc mở rộng</string>
<string name="hud_hold_lock">Khóa hoặc mở khóa</string>
<string name="hud_snap">Bám vào cạnh trái/phải</string>
<string name="hud_snap_hint">Thả HUD ra và nó sẽ di chuyển sang cạnh màn hình gần hơn. Vuốt nhanh để ném nó theo hướng đó.</string>
<string name="hud_group_look">Giao diện</string>