Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

enabled orthogonal scrolling #70

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/ftscroller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down