diff options
author | 2023-01-14 16:49:21 -0800 | |
---|---|---|
committer | 2023-01-14 16:59:52 -0800 | |
commit | 2e047dff98eca66d5dca029cd4b7c722948814d3 (patch) | |
tree | 27e7be95c4b0748c672fa37b7c67c8046a99805c /ui/static/js/touch_handler.js | |
parent | 6612e426688958d385e72173dbd05aea317ca491 (diff) | |
download | v2-2e047dff98eca66d5dca029cd4b7c722948814d3.tar.gz v2-2e047dff98eca66d5dca029cd4b7c722948814d3.tar.zst v2-2e047dff98eca66d5dca029cd4b7c722948814d3.zip |
Add option to enable or disable double tap
Diffstat (limited to 'ui/static/js/touch_handler.js')
-rw-r--r-- | ui/static/js/touch_handler.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/static/js/touch_handler.js b/ui/static/js/touch_handler.js index d850f19e..e06d81aa 100644 --- a/ui/static/js/touch_handler.js +++ b/ui/static/js/touch_handler.js @@ -26,11 +26,11 @@ class TouchHandler { } findElement(element) { - if (element.classList.contains("touch-item")) { + if (element.classList.contains("entry-swipe")) { return element; } - return DomHelper.findParent(element, "touch-item"); + return DomHelper.findParent(element, "entry-swipe"); } onTouchStart(event) { @@ -93,7 +93,7 @@ class TouchHandler { } listen() { - let elements = document.querySelectorAll(".touch-item"); + let elements = document.querySelectorAll(".entry-swipe"); let hasPassiveOption = DomHelper.hasPassiveEventListenerOption(); elements.forEach((element) => { |