forked from Blendman974/faceclaw
Update the launcher, Files app and builtin games to better handle watch swipe gestures
This commit is contained in:
1 parent
0eddd862ad
commit
061b2eb215
16 files changed
+323
-35
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user