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:
parent
6612e42668
commit
2e047dff98
34 changed files with 101 additions and 52 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue