-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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 pauseOnMouseEnter not working properly when speed was set #6896
Autoplay pauseOnMouseEnter not working properly when speed was set #6896
Comments
bandicam.2023-08-04.09-53-18-909.mp4When the two silde switches, move the mouse in, pauseOnMouseEnter not working |
Have you solved it? |
use mouseenter/leave |
yes, i just use mouse event to control it. |
is animation bug LOL
…---Original---
From: ***@***.***>
Date: Fri, Aug 25, 2023 20:13 PM
To: ***@***.***>;
Cc: "biu ***@***.******@***.***>;
Subject: Re: [nolimits4web/swiper] Autoplay pauseOnMouseEnter not workingproperly when speed was set (Issue #6896)
yes, i just use mouse event to control it.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
When I switch the data, the animation stops |
I didn't understand your question, when mouseenter/leave use swiper.autoplay.stop()/start() |
I already took care of it. The dynamic length of my data is not fixed. I destroyed it and reinitialized it. |
别销毁或者重置它
…---Original---
From: ***@***.***>
Date: Mon, Aug 28, 2023 15:02 PM
To: ***@***.***>;
Cc: "biu ***@***.******@***.***>;
Subject: Re: [nolimits4web/swiper] Autoplay pauseOnMouseEnter not workingproperly when speed was set (Issue #6896)
When I switch the data, the animation stops
I didn't understand your question, when mouseenter/leave use swiper.autoplay.stop()/start()
I already took care of it. The dynamic length of my data is not fixed. I destroyed it and reinitialized it.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
兄弟,我也遇到同样的问题了。。。解决了吗? |
手写一个鼠标事件去手动暂停,不用自带的配置
…---Original---
From: ***@***.***>
Date: Mon, Dec 18, 2023 23:01 PM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [nolimits4web/swiper] Autoplay pauseOnMouseEnter not workingproperly when speed was set (Issue #6896)
兄弟,我也遇到同样的问题了。。。解决了吗?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
swiper对象能打印出来,但是swiper.autoplay.stop is not a function。。。 |
你解决这个问题了吗 |
看你的swiper版本以及是否正确获取实例 |
我在swiper组件标签里写@swiper="onSwiper";在swiper组件的上一层div中添加了 @mouseenter="handleSwiperMouseEnter" |
试试通过 ref 的方式 直接获取实例组件内部的 |
Check that this is really a bug
Reproduction link
https://codesandbox.io/p/sandbox/swiper-autoplay-progress-forked-qjnwvh
Bug description
When use default speed, It worked(pause on mouseEnter everytime), but if speed was set, swiper will not pause(not everytime).
Expected Behavior
should pause on mouseEnter everytime
Actual Behavior
not pause everytime.
Swiper version
9.4.1, 10.0.4
Platform/Target and Browser Versions
macOS Chrome 115.0
Validations
Would you like to open a PR for this bug?
The text was updated successfully, but these errors were encountered: