forked from Blendman974/faceclaw
Glanceboard: Head tilt timeout setting
How long a head-tilt showing may last when no head-down arrives: 60 s (the default, as before), 30, 15, 10 s, or never (it then stays until the head comes down or a double-tap). Where the head-down is unlikely, the tap duration still applies when it is shorter. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b1ca8b8ca1
commit
58626ce146
8 files changed
+86
-25
No files matched your search
@@ -92,7 +92,8 @@ 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());
|
||||
const event = glanceEventForGesture(gesture, this.isVisible());
|
||||
return event?.type === "tilt" ? { type: "tilt", maxMs: provider.tiltTimeoutMs() } : event;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user