feat: add shared tilt-down hide and current-angle measurement

This commit is contained in:
Blendman974 committed 2026-11-06 22:01:21 +01:00
1 parent 5929259d84
commit f029e3ce91
21 files changed
+356 -24

No files matched your search

+2 -1
View File
@@ -1,3 +1,4 @@
import { headDownHideSetting } from "../ui/dashboard-settings";
/**
* Shows the Glanceboard while the shell sleeps. The board is not a window:
* it lives on its own full-screen opaque compositor surface above the shell
@@ -92,7 +93,7 @@ export class GlanceHost {
if (gesture === "click" && !provider.showOnTap()) return null;
if ((gesture === "long-press" || gesture === "short-then-long-press") && !provider.showOnLongPress()) return null;
if (gesture === "head-tilt" && !provider.showOnHeadTilt()) return null;
return glanceEventForGesture(gesture, this.isVisible());
return glanceEventForGesture(gesture, this.isVisible(), headDownHideSetting.get());
}
/**