Replies: 4 comments 7 replies
-
I think you should remove start/stop methods in mouse enter/leave callback. Because you already turn on pauseOnMouseEnter option when init swiper. If they are removed, it will be worked like below. However although after removing them, panels can not be stopped immediately. I don't know if this is the intended behavior. |
Beta Was this translation helpful? Give feedback.
-
In |
Beta Was this translation helpful? Give feedback.
-
its taking time to stop, the slider will go all the way to center and stopping it, it should not be like this, it should stop immediately when user mouse hover |
Beta Was this translation helpful? Give feedback.
-
Edit: found a solution, just trigger this function on a mouseover event listener:
with pauseOnMouseEnter set to true passed to the Slider instance. |
Beta Was this translation helpful? Give feedback.
-
Check that this is really a bug
Reproduction link
https://codesandbox.io/s/marquee-with-swiperjs-tugmz8
Bug description
I can not pause the slider when hover any element in swiper.
Expected Behavior
No response
Actual Behavior
No response
Swiper version
8.2.2
Platform/Target and Browser Versions
Any browsers
Validations
Would you like to open a PR for this bug?
Beta Was this translation helpful? Give feedback.
All reactions