-
-
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
Click (touch) events blocked for a short time after swiping #6754
Comments
This problem doesn't occur with |
@kubagp1 did you find any workaround for this? |
Nope. I'm using a different carousel library until this is fixed. |
Not a Swiper bug, it is browser's bug or feature related to handling touch-action CSS prop. It can be replicated on any simple element such as |
Then why it's only present in Swiper? Any other library i tested didn't have this behaviour. |
Check that this is really a bug
Reproduction link
https://codesandbox.io/p/sandbox/swiper-react-default-forked-u7yty5?file=%2Fsrc%2FApp.jsx
Bug description
When clicking somewhere quickly after swiping to change a slide, click events on elements not related to the swiper are not registered. This only happens when using touch input (emulated or real).
2023-02-07.00-53-02.mp4
NOTE: I opened the same issue (#6355) once, but after posting tried few things out in the codesanbox like changing Swiper version to 7. When @nolimits4web reviewed my previous issue I forgot to revert those changes and my issue was closed (due to version 7 being used) without a solution or fix. I apologize for my mistake. The issue is still valid.
Expected Behavior
Click events on external elements should work as usual.
Actual Behavior
Click events on external are not triggered when clicking on them shortly after swiping the swiper.
Swiper version
9.4.0
Platform/Target and Browser Versions
Chrome 114.0.5735.110 (Windows 10)
Validations
Would you like to open a PR for this bug?
The text was updated successfully, but these errors were encountered: