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:
parent
493f565b73
commit
d6dfbab3ff
6 changed files with 85 additions and 11 deletions
|
@ -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){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue