replaced jetser with hammertime which hopefully fixes #32

This commit is contained in:
Jeena 2014-05-22 20:11:54 +02:00
parent d99928908e
commit 28ce177e17
4 changed files with 2172 additions and 606 deletions

View file

@ -84,11 +84,13 @@ App.prototype.after_login = function(backend) {
}
// set up swiping
jester($("#full")).flick(function(touches, direction) {
if(direction == "left") _this.showNext();
else _this.showPrevious();
});
var options = {
dragLockToAxis: true,
dragBlockHorizontal: true
};
var hammertime = new Hammer($("#full"), options);
hammertime.on("swipeleft", function(ev){ _this.showNext() });
hammertime.on("swiperight", function(ev){ _this.showPrevious(); });
this.changeToPage("#list");