better slide
This commit is contained in:
parent
aec6cd079b
commit
54900c3346
1 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
|
||||
|
|
Reference in a new issue