Here is the scenario:
- I have an HTML that is scrollable.
- Inside that HTML I have a div that is also scrollable.
When the mouse is in that div, I don’t want the main HTML scroll to be active. It should only scroll inside the div. When it reaches the end it shouldn’t scroll anymore that div and the body scroll should not activate.
Here is a sample:
<html>
<body style="overflow:scroll;">
<div id="SOME_ID">SCROLLABLE CONTENT HERE</div>
</body>
</html>
I don’t even know where to start. CSS? JQUERY?
Any help appreciated.
Here is the full working code…..