I have a layout build on flexboxes.
In the fixed sidebar I have scroll as well as in the main container.
The issue is that while I'm scrolling in a sidebar and reaching the end of the scroll, the scroll from the main container starts to scroll. How to prevent that and scroll only what user has focused on (only sidebar or main container)?
Asked
Active
Viewed 141 times
0

susanoo
- 289
- 4
- 13
-
Can we see your code? – Xoog Dec 29 '17 at 09:22
-
1Possible duplicate of [Scrolling child div scrolls the window, how do I stop that?](https://stackoverflow.com/questions/10211203/scrolling-child-div-scrolls-the-window-how-do-i-stop-that) – orangespark Dec 29 '17 at 09:24
1 Answers
0
<div onmouseover="document.body.style.overflow='hidden';" onmouseout="document.body.style.overflow='auto';"></div>
from

Shubham Sharma
- 315
- 2
- 18