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

Horizontal RTL scrolling goes wrong way #993

Open
betaorbust opened this issue May 12, 2021 · 5 comments
Open

Horizontal RTL scrolling goes wrong way #993

betaorbust opened this issue May 12, 2021 · 5 comments

Comments

@betaorbust
Copy link

I've noticed that scrolling a horizontal group of elements that are in right-to-left (RTL) writing mode scrolls to the wrong end of the list.
The native API seems to handle this case, so I believe it's a bug.

Reproduction in this pen. Instructions on the page.

Thanks so much!

@choxnox
Copy link

choxnox commented Jul 27, 2022

Is this going to be fixed any time soon?

This is breaking libraries which rely on this specific library (e.g. https://github.com/asmyshlyaev177/react-horizontal-scrolling-menu).

@asmyshlyaev177
Copy link

asmyshlyaev177 commented Aug 7, 2022

Is this going to be fixed any time soon?

This is breaking libraries which rely on this specific library (e.g. https://github.com/asmyshlyaev177/react-horizontal-scrolling-menu).

My library can work without polyfill, but this polyfill is good, I hope bug with RTL will be fixed.

Can detect RTL on body like this

    const direction = window.getComputedStyle(document.body, null).getPropertyValue('direction');
    

From here https://stackoverflow.com/a/16958416/5538912

@Sovai
Copy link

Sovai commented Mar 27, 2023

any update?

@Tchelet-Levi
Copy link

This library is a life savior, but I too am affected by this and would love it if this bug was addressed 🙏

@bakura10
Copy link

For information, I did a PR a few months back to add support for RTL in the base library (PR here: scroll-into-view/compute-scroll-into-view#907)

I am still waiting for it to be merged but I did not receive answer from the maintainers yet.

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

No branches or pull requests

6 participants