-
What did you expect? 🧐It should not snap back to the start when scrolling in the opposite direction. What actually happened? 😵💫I have 2 elements with overflow-x and using scroll mirror to sync the scroll horizontally. It works, but as soon as I scroll vertically, the horizontal scroll snaps back to the start { vertical: false, horizontal: true } Screen.Recording.2024-10-17.at.23.40.48.movWhat browsers are you seeing the problem on? 🧭Chrome Relevant log output 🤓No response URL to minimal reproduction 🔗N/A Checked all these? 📚
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hi @jenky , thanks for your report! Could you create a minimal reproduction of the bug? You can fork this pen on codepen: https://codepen.io/rassohilber/pen/JjxwJpo |
Beta Was this translation helpful? Give feedback.
-
@hirasso Here is the reproduction https://codesandbox.io/p/sandbox/ptscft |
Beta Was this translation helpful? Give feedback.
-
Thank you @jenky! In your code, you are also adding - document.querySelectorAll(":root, .comparison-container", {
+ document.querySelectorAll(".comparison-container", {
vertical: false,
horizontal: true,
}) If you like this library, please give it a star! It dearly needs some 🙂 |
Beta Was this translation helpful? Give feedback.
@jenky did this answer your question?