I am having trouble successfully detecting a swipe event on a non-native iOS app I'm making.
<div id="video" data-ng-click="adminSelectVideo(video)" ng-repeat="video in videos">
Could anyone help me with a javascript implementation of detecting a left swipe gesture on the following div element 'video'?
Thanks in advance
I use hammerjs for javascript multitouch gestures. Swipe gesture is one of them
var element = document.getElementById('video');
Hammer(element).on("swipeleft", function() {
console.log('you swiped left me!');
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With