To disable scrolling, visually, without touching scrolling?

Need cross-browser disable scrolling on call block (modelnogo window)
To disable only the function, and the scroll bar not to touch, it should not respond to scrolling that mouse wheel that a delay of keyboard keys that the finger on the touch

For example, opening/closing unit:
 $("#but").click(function () {

$(document).click( function(event){
 if( $("#lk-content").length ) 
event.the stoppropagation();
 return false;

Just to remove the possibility of scrolling
Maybe there are plug-ins?
It is desirable of course, to do Supplement jq lines in the existing script

Thank you for your attention!
June 14th 19 at 18:55
1 answer
June 14th 19 at 18:57
Well, just to create the element which will fill all space above the scroll and then scrolling will not be available, the type so. Just to prevent what was a strip of scrolling on window
wow Thanks But the script is now to incorporate existing or separately it works and how to invoke it should this unit? - estefania32 commented on June 14th 19 at 19:00
This script is quite difficult for me, as you probably noticed, PTS. a simple approach ) - estefania32 commented on June 14th 19 at 19:03
If you can, please explain what the essence of the code execution?
Z-index for example does not cover the main srcoll I Think I have a chip in the script, He directly covers the primary page? Don't know where to start - estefania32 commented on June 14th 19 at 19:06
You content needs is some block for example a div with overflow:auto; ie, the scroll will appear on this block div, and this div just appears on top of it all. - Alene56 commented on June 14th 19 at 19:09
OK understood ) In the General feature only z-index Scripts not required - estefania32 commented on June 14th 19 at 19:12

Find more questions by tags jQueryJavaScript