Skip to content
New issue

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

If autoscroll speed is negative (to play from right to left), images disappear after a while #7

Closed
2 tasks done
alensimunic opened this issue Jun 27, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@alensimunic
Copy link

Checks

Version

v4.0.1

Description

Below is the code I tried using to get the slider to scroll in different direction. It works for a while, but after all images are scrolled once, they just dissapear.

var splide = new Splide("#splidelower", { type: "loop", focus: "center", rewind: true, arrows: false, pagination: false, drag: false, pauseOnHover: false, perPage: 5, autoScroll: { speed: -0.8, pauseOnHover: false, }, }); splide.mount(window.splide.Extensions);

Reproduction Link

No response

Steps to Reproduce

  1. Set speed to negative value
  2. Watch slider repeat

Expected Behaviour

Images should not be disappearing

@alensimunic alensimunic added the bug Something isn't working label Jun 27, 2022
@the-Tofiq
Copy link

@alensimunic did you solve the problem?

@alensimunic
Copy link
Author

@alensimunic did you solve the problem?

Unfortunately no, we weren't able to pinpoint why images are disappearing. It seems like a more experienced person that knows the source code should take a look into this...

@NaotoshiFujita
Copy link
Contributor

In the old versions, the extension did not support negative values for the speed option.
From ^0.5.0, it does.
https://splidejs.com/extensions/auto-scroll/#speed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants