On my webpage when I click an element, modal window (div with fixed position) shows up. Problem is, that when I am scrolling using mouse scroll (or using finger on my phone/tablet), whole page is scrolling, and I want scrolling to be applied to content of the div (it has scroll bar) and stop scrolling the page. When the div is hidden, I want scorlling to switch back to whole page. Is it possible? I tried disabling scroll of body when I show div (jQuery):
$("body").css({"overflow", "hidden"})
but the only effect I get is that page scrollbar is being hidded, but still mouse scroll scrolls the whole page (behind the div I want to scroll).