From 5d69fc0f1b46fdf5250f477290800388988dd0b6 Mon Sep 17 00:00:00 2001 From: Michael Geers Date: Wed, 5 Feb 2014 14:44:36 +0100 Subject: [PATCH] enabled orthogonal scrolling; see #27 --- lib/ftscroller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ftscroller.js b/lib/ftscroller.js index e55003b..0c2f651 100755 --- a/lib/ftscroller.js +++ b/lib/ftscroller.js @@ -723,7 +723,7 @@ var FTScroller, CubicBezier; // Determine whether to prevent the default scroll event - if the scroll could still // be triggered, prevent the default to avoid problems (particularly on PlayBook) - if (_instanceOptions.bouncing || scrollInterrupt || (_scrollableAxes.x && gesture.x && distancesBeyondBounds.x < 0) || (_scrollableAxes.y && gesture.y && distancesBeyondBounds.y < 0)) { + if (_instanceOptions.bouncing || scrollInterrupt || (_scrollableAxes.x && gesture.x && Math.abs(gesture.x) > _instanceOptions.scrollResponseBoundary) || (_scrollableAxes.y && gesture.y && Math.abs(gesture.y) > _instanceOptions.scrollResponseBoundary)) { rawEvent.preventDefault(); }