Streaming live at 10am (PST)

Stop body scrolling doesnt work for me :(

Hello! I am trying to figure out how to stop the body scrolling when my modal is opened.

As you can see, in this page in tablet or lower res devices, it appears a button “Browser all categories” which opens a modal windows.

But If you scroll to the bottom and continue, the body will continue scrolling, so when the user clicks close, it will appear in the lower part of the site.

Here’s the modal position:

And this is the script I am trying to:


Webflow.push(function() {
$(’.browserallcategories’).click(function(e) {

var clicks = $(this).data('clicks');
if (clicks) {
    overflow: 'scroll',
    '-webkit-overflow-scrolling': 'touch',
    position: 'inherit',
    top: '0'

} else {
  $(this).data('offset', window.pageYOffset);
    overflow: 'hidden',
    height: 'auto',
    position: 'absolute',
    top: 0 - window.pageYOffset

$(this).data("clicks", !clicks);


What am I doing wrong?


My read link:

Fixed with this solution <3