diff options
| author | Terry Truong <terry06890@gmail.com> | 2022-06-28 22:24:55 +1000 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2022-06-28 22:24:55 +1000 |
| commit | 7677d593467e7cc29cf10f28301152776c027bd2 (patch) | |
| tree | 1287947c5ce202b03b89fa6db18c492c589b50a6 /src/App.vue | |
| parent | a97ac5f88503b8685c3f0068d4d7b51fc1d01150 (diff) | |
Use double-taps on mobile
Diffstat (limited to 'src/App.vue')
| -rw-r--r-- | src/App.vue | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/App.vue b/src/App.vue index f67cbb1..42a4cd9 100644 --- a/src/App.vue +++ b/src/App.vue @@ -3,7 +3,7 @@ :style="{backgroundColor: uiOpts.bgColor}"> <!-- Title bar --> <div class="flex shadow gap-2 p-2" :style="{backgroundColor: uiOpts.bgColorDark2}"> - <h1 class="my-auto ml-2 text-3xl" :style="{color: uiOpts.altColor}">Tilo</h1> + <h1 class="my-auto ml-2 text-3xl" :style="{color: uiOpts.altColor}">Tilo (prototype)</h1> <div class="mx-auto"/> <!-- Spacer --> <!-- Icons --> <icon-button v-if="!uiOpts.disabledActions.has('search')" :style="buttonStyles" @click="onSearchIconClick"> @@ -86,7 +86,8 @@ import HelpIcon from './components/icon/HelpIcon.vue'; import {TolNode, TolMap, getServerResponse, Action, UiOptions} from './lib'; import {LayoutNode, LayoutOptions, LayoutTreeChg} from './layout'; import {initLayoutTree, initLayoutMap, tryLayout} from './layout'; -import {getBreakpoint, getScrollBarWidth, arraySum, randWeightedChoice, timeout} from './util'; +import {getBreakpoint, getScrollBarWidth, isTouchDevice, + arraySum, randWeightedChoice, timeout} from './util'; // Type representing auto-mode actions type AutoAction = 'move across' | 'move down' | 'move up' | Action; @@ -162,6 +163,7 @@ function getDefaultUiOpts(lytOpts: LayoutOptions): UiOptions { searchJumpMode: false, tutorialSkip: false, disabledActions: new Set() as Set<Action>, + useDblClick: isTouchDevice(), }; } const lytOptPrefix = 'LYT '; // Used when saving to localStorage |
