Skip to content

touchReleaseOnEdges parameter crashes swiper in RTL mode. #7179

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

Closed
5 of 6 tasks
nurullahkilic opened this issue Nov 10, 2023 · 4 comments
Closed
5 of 6 tasks

touchReleaseOnEdges parameter crashes swiper in RTL mode. #7179

nurullahkilic opened this issue Nov 10, 2023 · 4 comments
Labels
t0ggles Linked to the t0ggles task

Comments

@nurullahkilic
Copy link

Check that this is really a bug

  • I confirm

Reproduction link

https://codesandbox.io/s/swiper-touchreleaseonedges-rtl-mode-swxjw4?file=/index.html

Bug description

When we use the 'touchReleaseOnEdges' parameter in the Swiper instance, the swipe functionality crashes in RTL mode.

While it works normally in LTR mode, in RTL mode, the swipe doesn't function properly.

Expected Behavior

When using 'touchmove' in the horizontal direction, the swiper should properly swipe from right to left or left to right.

Actual Behavior

In RTL mode, swiping right to left on touchmove doesn't work. If you navigate to the next slides using the navigation buttons, you can only go back by swiping left to right on touchmove. This is the only way for swiping in RTL mode.

In LTR mode, there are no issues.

Swiper version

11.0.3

Platform/Target and Browser Versions

macOS Chrome 119

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
@vladivo
Copy link

vladivo commented Mar 18, 2025

Can confirm. Using v11.2.5

@nolimits4web
Copy link
Owner

t0ggles-create swiper

Copy link

t0ggles bot commented Mar 18, 2025

Task nolimits4web/SWIPER-160 was created

t0ggles task SWIPER-160

@t0ggles t0ggles bot added the t0ggles Linked to the t0ggles task label Mar 18, 2025
Copy link

t0ggles bot commented Mar 19, 2025

Task nolimits4web/SWIPER-160 status changed to Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t0ggles Linked to the t0ggles task
Projects
None yet
Development

No branches or pull requests

3 participants