Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

How to hover any slide to pause in swiper #5771

Closed
6 tasks done
nixjs opened this issue Jun 4, 2022 · 1 comment
Closed
6 tasks done

How to hover any slide to pause in swiper #5771

nixjs opened this issue Jun 4, 2022 · 1 comment
Labels

Comments

@nixjs
Copy link

nixjs commented Jun 4, 2022

Check that this is really a bug

  • I confirm

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

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
  • Make sure this is a Swiper issue and not a framework-specific issue

Would you like to open a PR for this bug?

  • I'm willing to open a PR
@wjddlsy
Copy link

wjddlsy commented Jul 4, 2022

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.

2022-07-04 17-23-48 2022-07-04 17_24_42

However although after removing them, panels can not be stopped immediately. I don't know if this is the intended behavior.

Repository owner locked and limited conversation to collaborators Jul 4, 2022
@nolimits4web nolimits4web converted this issue into discussion #5843 Jul 4, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
Projects
None yet
Development

No branches or pull requests

2 participants