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

Replace DomHelper.findParent with .closest

See https://developer.mozilla.org/en-US/docs/Web/API/Element/closest
This commit is contained in:
jvoisin 2024-03-11 00:28:31 +01:00 committed by Frédéric Guillot
parent d9d17f0d69
commit 826e4d654f
3 changed files with 2 additions and 12 deletions

View file

@ -31,7 +31,7 @@ class TouchHandler {
return element;
}
return DomHelper.findParent(element, "entry-swipe");
return element.closest(".entry-swipe")
}
onItemTouchStart(event) {