Skip to content
This repository has been archived by the owner on Jun 20, 2022. It is now read-only.

Use event.composedPath() instead of event.path #61

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions swipe-navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ function swipeNavigation() {
}

function handleTouchStart(event) {
if (typeof event.path == "object") {
for (let element of event.path) {
if (typeof event.composedPath() == "object") {
for (let element of event.composedPath()) {
if (element.nodeName == "HUI-VIEW") break;
else if (ignored.indexOf(element.nodeName) > -1) return;
}
Expand Down