From 48c5d8a250e31bfee1409a50c033bba5ca1abede Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 13 Feb 2013 04:27:16 +0400 Subject: [PATCH] another attempt at taming and controlling the scroll on a tablet failed... Signed-off-by: Alex A. Naanou --- layout.html | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/layout.html b/layout.html index 9ae519b..351f5cb 100755 --- a/layout.html +++ b/layout.html @@ -114,6 +114,7 @@ $(document).ready(function(){ function(k){console.log(k)})) + /* window.scroll_state = 'none' window.SCROLL_STOP_THRESHOLD = 3 window.SCROLL_CHECK_INTERVAL = 50 @@ -133,21 +134,10 @@ $(document).ready(function(){ }, SCROLL_CHECK_INTERVAL) window._cur_page = 0 + */ $('.viewer') /* - .on('scroll', function(){ - log('scroll...') - var c = v.scrollLeft() - if(scroll_state == 'kinetic' - && ((_scroll_offset - c) <= SCROLL_STOP_THRESHOLD - || _scroll_offset - c >= -SCROLL_STOP_THRESHOLD)){ - scroll_state = 'none' - log('none...') - v.trigger('scrollstop') - } - }) - */ .on('mousedown touchstart', function(){ log('touching...') scroll_state = 'touching' @@ -156,6 +146,7 @@ $(document).ready(function(){ log('kinetic...') scroll_state = 'kinetic' }) + */ //if(NAVIGATE_RELATIVE_TO_VISIBLE){