Skip to content

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

@kubra-uzun

Description

@kubra-uzun

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions