-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
Hi
I registered for all four swipe events, but surprisingly only the right one will fire. i don't if it's because of the touch pad or something else:
import TinyGesture from "https://unpkg.com/tinygesture@3.0.0/dist/TinyGesture.js";
function initSlider(target)
{
const instance = new TinyGesture(target);
console.log(instance)
instance.on("swipeleft", async event => {
console.log("swiped left")
});
instance.on("swiperight", async event => {
console.log("swiped right")
});
instance.on("swipeup", async event => {
console.log("swiped up")
});
instance.on("swipedown", async event => {
console.log("swiped down")
});
}
document.addEventListener("DOMContentLoaded", () => {
document.querySelectorAll(".swipe").forEach(initSlider);
});
Metadata
Metadata
Assignees
Labels
No labels