aboutsummaryrefslogtreecommitdiff
path: root/src/lib.ts
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2022-06-30 14:44:10 +1000
committerTerry Truong <terry06890@gmail.com>2022-06-30 14:44:10 +1000
commit5af08938d47504cfc45d125b2ae9898534a1e5a1 (patch)
treee137a40fde6821b62533d941bb836309497d3335 /src/lib.ts
parent5412fb6a567bd573bfd72d7f2ec471a5f2cbb6a6 (diff)
Add ui-option touchDevice
Diffstat (limited to 'src/lib.ts')
-rw-r--r--src/lib.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib.ts b/src/lib.ts
index 0e5917f..de8c560 100644
--- a/src/lib.ts
+++ b/src/lib.ts
@@ -108,8 +108,8 @@ export type UiOptions = {
searchJumpMode: boolean,
tutorialSkip: boolean,
disabledActions: Set<Action>,
- useDblClick: boolean,
disableShortcuts: boolean,
+ touchDevice: boolean,
};
// Option defaults
export function getDefaultLytOpts(): LayoutOptions {
@@ -169,8 +169,8 @@ export function getDefaultUiOpts(lytOpts: LayoutOptions): UiOptions {
searchJumpMode: false,
tutorialSkip: false,
disabledActions: new Set() as Set<Action>,
- useDblClick: onTouchDevice(),
disableShortcuts: false,
+ touchDevice: onTouchDevice(),
};
}
// Used in Settings.vue, and when saving to localStorage