Update the launcher, Files app and builtin games to better handle watch swipe gestures

This commit is contained in:
James Babcock committed 2026-08-30 15:03:53 -07:00
1 parent 0eddd862ad
commit 061b2eb215
16 files changed
+323 -35

No files matched your search

+7
View File
@@ -117,6 +117,12 @@ export type WorkerWindowSpec = {
focus?: boolean;
/** Window height: the standard 288px band ("min", default) or full screen ("max"). */
heightMode?: WindowHeightMode;
/**
* Deliver watch swipes to the worker as swipe-* events instead of the
* scroll / click / double-click fallback. The worker then owns the meaning
* of all four directions in every window state (see ShellWindow).
*/
acceptsDirectional?: boolean;
};
export type WorkerAppHostOptions = {
@@ -283,6 +289,7 @@ export class WorkerAppHost {
title: spec.title,
surfaceId,
closeable: true,
acceptsDirectional: spec.acceptsDirectional,
heightMode,
close: () => {
this.openWindows.delete(spec.windowId);