mirror of
https://github.com/flynx/PortableMag.git
synced 2025-10-29 11:10:08 +00:00
doing magic testing...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
52ce720acc
commit
d249fca523
24
index2.html
24
index2.html
@ -134,28 +134,12 @@ $(document).ready(function(){
|
||||
$('.viewer')
|
||||
.on('scrollCancelled', function(){ setCurrentPage() })
|
||||
//.on('shortClick', handleClick)
|
||||
//.on('swipeLeft', handleSwipeLeft)
|
||||
//.on('swipeRight', handleSwipeRight)
|
||||
//.on('screenReleased', handleScrollRelease)
|
||||
.on('screenReleased swipeRight swipeLeft', handleScrollRelease)
|
||||
|
||||
.on('swipeLeft', handleSwipeLeft)
|
||||
.on('swipeRight', handleSwipeRight)
|
||||
.on('screenReleased', handleScrollRelease)
|
||||
/*
|
||||
// try a way of cheating...
|
||||
var w = $('.viewer').width()
|
||||
var h = $('.viewer').height()
|
||||
$('.content').each(function(_, e){
|
||||
var e = $(e)
|
||||
var ew = e.width()
|
||||
var eh = e.height()
|
||||
var ratio = ew/eh
|
||||
e.height(h)
|
||||
e.width(ratio * h)
|
||||
})
|
||||
$('.magazine').css({
|
||||
'margin-top': -h/2,
|
||||
height: h,
|
||||
})
|
||||
*/
|
||||
//.on('screenReleased swipeRight swipeLeft', handleScrollRelease)
|
||||
|
||||
// XXX stub...
|
||||
//setTransitionEasing($('.magazine'), 'ease-out')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user