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
28
index2.html
28
index2.html
@ -134,28 +134,12 @@ $(document).ready(function(){
|
|||||||
$('.viewer')
|
$('.viewer')
|
||||||
.on('scrollCancelled', function(){ setCurrentPage() })
|
.on('scrollCancelled', function(){ setCurrentPage() })
|
||||||
//.on('shortClick', handleClick)
|
//.on('shortClick', handleClick)
|
||||||
//.on('swipeLeft', handleSwipeLeft)
|
.on('swipeLeft', handleSwipeLeft)
|
||||||
//.on('swipeRight', handleSwipeRight)
|
.on('swipeRight', handleSwipeRight)
|
||||||
//.on('screenReleased', handleScrollRelease)
|
.on('screenReleased', handleScrollRelease)
|
||||||
.on('screenReleased swipeRight swipeLeft', handleScrollRelease)
|
/*
|
||||||
|
*/
|
||||||
/*
|
//.on('screenReleased swipeRight swipeLeft', 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,
|
|
||||||
})
|
|
||||||
*/
|
|
||||||
|
|
||||||
// XXX stub...
|
// XXX stub...
|
||||||
//setTransitionEasing($('.magazine'), 'ease-out')
|
//setTransitionEasing($('.magazine'), 'ease-out')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user