forked from Blendman974/faceclaw
feat: add shared tilt-down hide and current-angle measurement
This commit is contained in:
21 files changed
+356
-24
No files matched your search
@@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user