Detecting swipe gesture iOS - Cordova/Phonegap Javascript -


i having trouble detecting swipe event on non-native ios app i'm making.

<div id="video" data-ng-click="adminselectvideo(video)" ng-repeat="video in videos"> 

could me javascript implementation of detecting left swipe gesture on following div element 'video'?

thanks in advance

i use hammerjs javascript multitouch gestures. swipe gesture 1 of them

var element = document.getelementbyid('video'); hammer(element).on("swipeleft", function() {     console.log('you swiped left me!'); }); 

Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -