1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-06 17:41:00 +00:00

Add option to enable or disable double tap

This commit is contained in:
Frédéric Guillot 2023-01-14 16:49:21 -08:00
parent 6612e42668
commit 2e047dff98
34 changed files with 101 additions and 52 deletions

View file

@ -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) => {