From 54900c33461da33dc8e2a02146e3bb380979c1de Mon Sep 17 00:00:00 2001 From: Jeena Date: Tue, 3 Jun 2014 19:13:19 +0200 Subject: [PATCH] better slide --- js/App.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/App.js b/js/App.js index c471b72..c81fc13 100644 --- a/js/App.js +++ b/js/App.js @@ -96,8 +96,8 @@ App.prototype.after_login = function(backend) { dragBlockHorizontal: true }; var hammertime = new Hammer($("#full"), options); - hammertime.on("swipeleft", function(ev){ _this.showNext() }); - hammertime.on("swiperight", function(ev){ _this.showPrevious(); }); + hammertime.on("dragleft swipeleft", function(ev){ ev.gesture.preventDefault(); _this.showNext() }); + hammertime.on("dragright swiperight", function(ev){ ev.gesture.preventDefault(); _this.showPrevious(); }); this.changeToPage("#list");