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
Our case:
We have some sections on a page. One section uses enscroll to simulate a horizonatl "slide" of a bigger image on mobile. So the section has a width of 100%. We disabled verticalScrolling for enscroll. The effect is, that the user cannot scroll furthermore to the sections after the described section.
Our fix in your script for the touchStart function:
1.: added variable settings:
touchStart = function( event ) {
var touchX, touchY, touchAxis, touchX0, touchY0, touchStarted, touchDelta,
pane = this,
settings = $( pane ).data( 'enscroll' ).settings,
2.: added condition around the preventDefault function call:
if ((touchAxis === 'y' && settings.verticalScrolling) || (touchAxis === 'x' && settings.horizontalScrolling)) {
preventDefault( event );
}
The text was updated successfully, but these errors were encountered:
Our case:
We have some sections on a page. One section uses enscroll to simulate a horizonatl "slide" of a bigger image on mobile. So the section has a width of 100%. We disabled verticalScrolling for enscroll. The effect is, that the user cannot scroll furthermore to the sections after the described section.
Our fix in your script for the touchStart function:
1.: added variable settings:
touchStart = function( event ) {
var touchX, touchY, touchAxis, touchX0, touchY0, touchStarted, touchDelta,
pane = this,
settings = $( pane ).data( 'enscroll' ).settings,
2.: added condition around the preventDefault function call:
if ((touchAxis === 'y' && settings.verticalScrolling) || (touchAxis === 'x' && settings.horizontalScrolling)) {
preventDefault( event );
}
The text was updated successfully, but these errors were encountered: