We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suppose we have this requirement:
Then I'm going to cancel the scroll event when it scroll from the start to the end. This is my beforeChange callback function.
beforeChange
beforeChange: function (el, prev, next) { console.log('brefore', prev, next) if (prev === 2 && next === 2) { return false } console.log('after', prev, next) }
See JSFiddle demo: https://jsfiddle.net/z4Lvwhr6/
Once open, scroll up for twice, there will be there logs in the console:
brefore 2 2 // no scroll happened, still in page1 brefore 2 1 // scroll from page1 to page2 after 2 1
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Suppose we have this requirement:
Then I'm going to cancel the scroll event when it scroll from the start to the end. This is my
beforeChange
callback function.See JSFiddle demo: https://jsfiddle.net/z4Lvwhr6/
Once open, scroll up for twice, there will be there logs in the console:
The text was updated successfully, but these errors were encountered: