1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-04 15:09:16 +02:00

changes for mobile sized screens

This commit is contained in:
Fred Chasen 2013-01-25 21:31:15 -08:00
parent 493f565b73
commit d6dfbab3ff
6 changed files with 85 additions and 11 deletions

View file

@ -185,13 +185,27 @@ FPR.app.init = (function($){
}
});
$next.on("click", function(){
$next.on("click swipeleft", function(){
Book.nextPage();
});
$prev.on("click", function(){
$prev.on("click swiperight", function(){
Book.prevPage();
});
$window.bind("touchy-swipe", function(event, phase, $target, data){
if(data.direction = "left"){
Book.nextPage();
}
if(data.direction = "right"){
Book.prevPage();
}
});
var lock = false;
$(document).keydown(function(e){