You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the mouse enters the Swiper during a slide transition, the pauseOnMouseEnter autoplay flag does not function as expected.
When a transition is in progress, autoplay is temporarily paused and then resumed once the transition is completed. However, if the mouse enters the Swiper during this paused state, the pauseOnMouseEnter flag fails to keep the autoplay paused, allowing it to resume after the transition finishes. This issue is more noticeable when using slower transition speeds but also occurs at default speeds if the mouse enters the Swiper at the precise moment during a transition.
Expected Behavior
The pauseOnMouseEnter flag should reliably pause autoplay when the mouse hovers over the Swiper component, regardless of whether a slide transition is currently in progress or not. Autoplay should remain paused for the duration that the mouse is over the Swiper.
Actual Behavior
The pauseOnMouseEnter flag fails to keep autoplay paused when the mouse hovers over the Swiper component during an ongoing slide transition. Instead, autoplay resumes automatically once the transition is complete, even if the mouse is still over the Swiper.
Check that this is really a bug
Reproduction link
https://codesandbox.io/s/swiper-autoplay-forked-j4zycv?file=/index.html
Bug description
When the mouse enters the Swiper during a slide transition, the
pauseOnMouseEnter
autoplay flag does not function as expected.When a transition is in progress, autoplay is temporarily paused and then resumed once the transition is completed. However, if the mouse enters the Swiper during this paused state, the pauseOnMouseEnter flag fails to keep the autoplay paused, allowing it to resume after the transition finishes. This issue is more noticeable when using slower transition speeds but also occurs at default speeds if the mouse enters the Swiper at the precise moment during a transition.
Expected Behavior
The
pauseOnMouseEnter
flag should reliably pause autoplay when the mouse hovers over the Swiper component, regardless of whether a slide transition is currently in progress or not. Autoplay should remain paused for the duration that the mouse is over the Swiper.Actual Behavior
The
pauseOnMouseEnter
flag fails to keep autoplay paused when the mouse hovers over the Swiper component during an ongoing slide transition. Instead, autoplay resumes automatically once the transition is complete, even if the mouse is still over the Swiper.Swiper version
10.3.1
Platform/Target and Browser Versions
macOS Chrome, Safari
Validations
Would you like to open a PR for this bug?
The text was updated successfully, but these errors were encountered: