0

When ever i changed height of body and HTML to 100% scroll bar of page disappears , how do i stop that

i'm getting two scrollbars after that trying this

thank you

Terminator
  • 67
  • 6
  • Please add the code you have made or check how to create an example to replicate the problem. On the other hand try to add the following in body overflow: hidden – danielm2402 Apr 17 '21 at 19:52

1 Answers1

0

Instead of changing the css, which will remove the scrollbar, and as you said change the layout of the page, try calling a jquery function instead.

JS

// call your pop up and inside that function add below
$('body').on('scroll mousewheel touchmove', function(e) {
      e.preventDefault();
      e.stopPropagation();
      return false;
});

Then when you close the modal, call the same function but replace on with off