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') $('.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')