doing magic testing...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2013-02-23 00:45:42 +04:00
parent 52ce720acc
commit d249fca523

View File

@ -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')