I have a page which is long enough to scroll on. On this page I have a button and when I click on that button it displays a div
with position fixed
and is also long enough to scroll. When I press esc the div
closes.
The problem is that when I press esc (to close the div
) while I am scrolling in that div
, the scrolling continues on the page. I don't want to disable scrolling, I just want to stop that current scrolling. How do I do that?