replaced jetser with hammertime which hopefully fixes #32
This commit is contained in:
parent
d99928908e
commit
28ce177e17
4 changed files with 2172 additions and 606 deletions
12
js/App.js
12
js/App.js
|
@ -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");
|
||||
|
||||
|
|
Reference in a new issue