From d249fca52326d2a3e375126c5359f83038ebae76 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sat, 23 Feb 2013 00:45:42 +0400 Subject: [PATCH] doing magic testing... Signed-off-by: Alex A. Naanou --- index2.html | 28 ++++++---------------------- 1 file changed, 6 insertions(+), 22 deletions(-) diff --git a/index2.html b/index2.html index 48f63f2..8b5e783 100755 --- a/index2.html +++ b/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) - - /* - // 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('swipeLeft', handleSwipeLeft) + .on('swipeRight', handleSwipeRight) + .on('screenReleased', handleScrollRelease) + /* + */ + //.on('screenReleased swipeRight swipeLeft', handleScrollRelease) // XXX stub... //setTransitionEasing($('.magazine'), 'ease-out')