Description
Check that this is really a bug
- I confirm
Reproduction link
https://codepen.io/Ionut2022/pen/rNJEOgx
Bug description
In sliders with mutliple elements visible that contain a link, clicking on a slide on a mobile device (simulating touch with browser DevTools also works - refresh page after resizing the window), or right clicking/scroll wheel clicking an slide, jumps the clicked slide to the first position instead of opening the link.
The link opens correctly only when the slider is at the last slide, or clicking the first slide of the current view.
Edit: The problem appeared since version 8.0.0
Version 7.4.1 is the last version that works correctly: https://codepen.io/Ionut2022/pen/ZErdJEb
Expected Behavior
Clicking a slide that contains a link on a mobile device opens the link.
On desktop, scroll wheel clicking on a slide with a link, opens the link in new tab.
Actual Behavior
Clicking a slide with a link on a mobile device (other then the first slide in the current view), jumps the clicked slide to the first position and does not open the link.
Scroll wheel clicking a slide with a link, does not open the link and jumps the clicked slide to the first position.
Swiper version
8.2.4
Platform/Target and Browser Versions
Android Chrome / Windows Chrome
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