π A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!
Vue awesomedashboarddockerhomelabhomepagemitnodejsorganizationproductivitypwaself-hostedstartpagevue
fixes #1261
Dragomir Denevb32852cf3c84
diff --git a/src/directives/LongPress.js b/src/directives/LongPress.jsindex 05df102b..d56f05cd 100644--- a/src/directives/LongPress.js+++ b/src/directives/LongPress.js@@ -39,11 +39,17 @@ export default {document.removeEventListener('pointerup', onPointerUp);};+ const onPointerMove = () => {+ clearTimeout(parseInt(el.dataset.longPressTimeout, 10));+ document.removeEventListener('pointermove', onPointerMove);+ };+const onPointerDown = (e) => {// If event was right-click, then immediately triggerif (e.button === 2) return;startTime = Date.now();document.addEventListener('pointerup', onPointerUp);+ el.addEventListener('pointermove', onPointerMove);el.addEventListener('click', swallowClick);const timeoutDuration = LONG_PRESS_DEFAULT_DELAY;const timeout = setTimeout(triggerEvent, timeoutDuration);