Skip to content
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

async init nested swiper, touch switching exception #7702

Open
5 of 6 tasks
iulo opened this issue Aug 26, 2024 · 0 comments
Open
5 of 6 tasks

async init nested swiper, touch switching exception #7702

iulo opened this issue Aug 26, 2024 · 0 comments

Comments

@iulo
Copy link

iulo commented Aug 26, 2024

Check that this is really a bug

  • I confirm

Reproduction link

https://stackblitz.com/edit/vitejs-vite-p6eas4?file=main.js

Bug description

A three-level nested swiper, the swiper on the third layer cannot be switched normally using touch.
The initialization order is: 1 > 2 > 3

But if the initialization order is reversed, it will be normal (3 > 2 > 1)

In my scenario I need to initialize swiper3 asynchronously(This means that the deepest swiper will be initialized last),Is there any way to correct this?
I guess it has something to do with the capture of the touchmove event.

Expected Behavior

No response

Actual Behavior

No response

Swiper version

11.1.10

Platform/Target and Browser Versions

chrome 128.0.6613.84

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
Repository owner deleted a comment Aug 26, 2024
Repository owner deleted a comment Aug 26, 2024
Repository owner deleted a comment Aug 26, 2024
Repository owner deleted a comment Aug 26, 2024
Repository owner locked and limited conversation to collaborators Aug 26, 2024
Repository owner deleted a comment Aug 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@iulo and others