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
v4.1.3
It's not possible to call scroll without invoking an animation.
No response
Setup Splide
Make a call (e.g. from the JavaScript Console) to
splide.Components.Scroll.scroll(index, 0, true);
Since the duration param here is set to 0, there should NOT be a visible animation, yet there is.
The problem happens because of this line of code in Scroll.ts
duration = noDistance ? 0 : duration || max( abs( destination - from ) / BASE_VELOCITY, MIN_DURATION );
One fix is to explicitly check if duration has been defined:
duration = noDistance ? 0 : (duration === undefined ? max(abs(destination - from) / BASE_VELOCITY, MIN_DURATION) : duration);
No scroll animation
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Checks
Version
v4.1.3
Description
It's not possible to call scroll without invoking an animation.
Reproduction Link
No response
Steps to Reproduce
Setup Splide
Make a call (e.g. from the JavaScript Console) to
splide.Components.Scroll.scroll(index, 0, true);
Since the duration param here is set to 0, there should NOT be a visible animation, yet there is.
The problem happens because of this line of code in Scroll.ts
One fix is to explicitly check if duration has been defined:
Expected Behaviour
No scroll animation
The text was updated successfully, but these errors were encountered: