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

MouseWheel + FreeMode + loop is not working properly in RTL mode #7797

Open
5 of 6 tasks
samMeow opened this issue Nov 19, 2024 · 0 comments
Open
5 of 6 tasks

MouseWheel + FreeMode + loop is not working properly in RTL mode #7797

samMeow opened this issue Nov 19, 2024 · 0 comments
Labels

Comments

@samMeow
Copy link

samMeow commented Nov 19, 2024

Check that this is really a bug

  • I confirm

Reproduction link

https://codesandbox.io/p/sandbox/romantic-lucy-8hmtsp

Bug description

Swiper works fine when using dir="ltr", all scrolling animation within swiper container acts smoothly.
However, in RTL mode, scrolling down / right will result in flicking element,
Inspecting html dom element, seems .swiper-wrapper element doesnt correctly calculate translateX when it decrease below 0.

Expected Behavior

it should scroll correctly to wheel position.

Actual Behavior

wield scrolling effect when scroll down

Swiper version

11.1.15

Platform/Target and Browser Versions

mac OS, 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
@samMeow samMeow added the React label Nov 19, 2024
@samMeow samMeow changed the title MouseWheel + FreeMode + loop is not working in RTL mode MouseWheel + FreeMode + loop is not working properly in RTL mode Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant