-
-
Notifications
You must be signed in to change notification settings - Fork 381
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
Anchor Tags not working with horizontal scrolling #509
Comments
@nzmitch did you manage to make it work? |
I guess you have to swap x and y when rotating the scrolling area by 90 degrees because the coordinate system has been changed. More generally, we could have a plugin to negate the rotation by transforming the scrolling delta (applying trigonometric functions.) @sadeghbarati I believe this is not a bug, but I don’t have time to validate my idea at this moment. Please have a look when you have time. More details: |
However, my suggestion is to use the horizontal scroll plugin (#359 (comment)) when you want to redirect scrollY to scrollX. Applying CSS transformations like this will create a local coordinate system and cause some unexpected consequences. |
I guess you want to use writing-mode with https://codepen.io/sadeghbarati/pen/ExexMMZ CodePen demo does not support RTL horizontal |
Checks
Version
^8.8.1
Description
I think I've found a bug when it comes to horizontal scrolling and anchor tags.
https://jsbin.com/romofifado/1/edit?html,css,js,output
I've reproduced the bug above.
#target doesn't jump to 001.
Steps to Reproduce
Horizontal scrolling on my website uses
Online Demo
https://jsbin.com/romofifado/1/edit?html,css,js,output
The text was updated successfully, but these errors were encountered: