mirror of
https://github.com/flynx/PortableMag.git
synced 2025-10-30 11:40:06 +00:00
fixed minor navigation problem...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
192b0ee5cd
commit
b9050a08c2
@ -3,12 +3,24 @@
|
|||||||
<title>Magazine</title>
|
<title>Magazine</title>
|
||||||
<link rel="stylesheet" href="magazine.css">
|
<link rel="stylesheet" href="magazine.css">
|
||||||
<script src="jquery.js"></script>
|
<script src="jquery.js"></script>
|
||||||
|
<script src="jquery.touchSwipe.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
$('.page').click(function(){
|
$('.viewer')
|
||||||
|
.swipe({
|
||||||
|
/* for some reason these do not work within pages... */
|
||||||
|
swipeLeft: nextPage,
|
||||||
|
swipeRight: prevPage,
|
||||||
|
swipeUp: function(){fitNPages(6)},
|
||||||
|
swipeDown: function(){fitNPages(1)},
|
||||||
|
click: function(evt, elem){
|
||||||
|
if($(elem).hasClass('page')){
|
||||||
var pages = $('.page')
|
var pages = $('.page')
|
||||||
setCurrentPage(pages.index(this))
|
setCurrentPage(pages.index(elem))
|
||||||
|
}
|
||||||
|
return true
|
||||||
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user