question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Scrolling ScrollMenu will also scroll parent container's vertical scroll

See original GitHub issue

Describe the bug When the ScrollMenu is under a container with vertical scrolls, mouse wheel scrolls both of them.

To Reproduce

  1. Create a div with height:100000px and overflow-y:scroll
  2. Put your ScrollMenu with a few items under the div
  3. Try to scroll ScrollMenu with your mouse wheel
  4. It will scroll both of them :c

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:7
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

github_iconTop Results From Across the Web

How to allow vertical scroll on a container and horizontal ...
This scrollable div must allow: vertical scrolling; elements outside of the container (horizontal overflow). Attempts and results: When overflow ...
Read more >
Making a div vertically scrollable using CSS - GeeksforGeeks
Set the overflow-x:hidden; and overflow-y:auto; that will automatically hide the horizontal scroll bar and present only vertical scrollbar.
Read more >
Using CSS Overscroll-Behavior To Prevent Scrolling Of Parent ...
Ben Nadel demonstrates that the CSS property, overscroll-behavior, can be used to trap the mouse scroll wheel within an overflow container.
Read more >
How To Create Horizontal Scrolling Containers - codeburst
Let's first create our container and our children divs inside of it that will scroll horizontally. The HTML is pretty simple. <div class="scrolling-wrapper">...
Read more >
react-horizontal-scrolling-menu - npm
Items width will be determined from CSS styles. For navigation, you can use scrollbar, native touch scroll, mouse wheel or drag by mouse....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found