From 5af08938d47504cfc45d125b2ae9898534a1e5a1 Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Thu, 30 Jun 2022 14:44:10 +1000 Subject: Add ui-option touchDevice --- src/components/Tile.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/components/Tile.vue') diff --git a/src/components/Tile.vue b/src/components/Tile.vue index 7b24590..0105e57 100644 --- a/src/components/Tile.vue +++ b/src/components/Tile.vue @@ -426,7 +426,7 @@ export default defineComponent({ // Click handling onMouseDown(): void { this.highlight = false; - if (!this.uiOpts.useDblClick){ + if (!this.uiOpts.touchDevice){ // Wait for a mouseup or click-hold clearTimeout(this.clickHoldTimer); this.clickHoldTimer = setTimeout(() => { @@ -448,7 +448,7 @@ export default defineComponent({ } }, onMouseUp(): void { - if (!this.uiOpts.useDblClick){ + if (!this.uiOpts.touchDevice){ if (this.clickHoldTimer > 0){ clearTimeout(this.clickHoldTimer); this.clickHoldTimer = 0; -- cgit v1.2.3