You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 9, 2022. It is now read-only.
Consider a horizontal scroller (scrollingY: false) in a vertically scolllable page. Currently vertical swipe movements on the scroller will not trigger the native page scroll, because of javascript rawEvent.preventDefault(); in _updateScroll.
For scrollers with scrollingY: false you could try to restrict rawEvent.preventDefault(); to only mainly horizontal swipe movements and correspondingly to mainly vertical swipes for scrollers with scrollingX: false.
The text was updated successfully, but these errors were encountered:
// 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)){rawEvent.preventDefault();}
If you remove it and after
// Update axes if appropriatefor(axisin_scrollableAxes){if(_scrollableAxes.hasOwnProperty(axis)){if(targetPositions[axis]>0){targetPositions[axis]=_modifyDistanceBeyondBounds(targetPositions[axis],axis);}elseif(targetPositions[axis]<_metrics.scrollEnd[axis]){targetPositions[axis]=_metrics.scrollEnd[axis]+_modifyDistanceBeyondBounds(targetPositions[axis]-_metrics.scrollEnd[axis],axis);}if(_reqAnimationFrame){_animationTargetPosition[axis]=targetPositions[axis];}else{_setAxisPosition(axis,targetPositions[axis]);
Consider a horizontal scroller (
scrollingY: false
) in a vertically scolllable page. Currently vertical swipe movements on the scroller will not trigger the native page scroll, because ofjavascript rawEvent.preventDefault();
in_updateScroll
.For scrollers with
scrollingY: false
you could try to restrictrawEvent.preventDefault();
to only mainly horizontal swipe movements and correspondingly to mainly vertical swipes for scrollers withscrollingX: false
.The text was updated successfully, but these errors were encountered: