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

Autoplay does not stop immediately on hover, when using pause(), and pauses autoplay despite not hovering #268

Open
kubra-uzun opened this issue Jan 30, 2023 · 0 comments

Comments

@kubra-uzun
Copy link

I have a slider with the following props:

slidesToShow: 1,
slidesToScroll: 1,
infinite: true,
cssEase: "linear",
autoplay: true,
speed: 9000,
autoplaySpeed: 9000,
variableWidth: true,
swipeToSlide: false,
waitForAnimate: false,
arrows: false,

I'm experiencing the following issues which might be intended behaviour or not:

  1. Autoplay does not stop the slider immediately on hover. I want the slider to stop quickly after hovering, not waiting for the animation to complete. Same issue when using play() or pause() when clicking on a button.
  2. When autoplay stops on hovering, it also takes a long time to restart it i.e. the autoplayTimer depends on the autoplay speed. Would it be possible to set the autoplay timer through a prop?
  3. If I hover once on the slide but then move the mouse from the element, it still triggers pausing of the autoplay despite not actively hovering.

Is there any solutions to the above issues?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant