Answers for "js stop scrolling event"

0

js stop scrolling event

function disableScrolling(){
    var x=window.scrollX;
    var y=window.scrollY;
    window.onscroll=function(){window.scrollTo(x, y);};
}

function enableScrolling(){
    window.onscroll=function(){};
}
Posted by: Guest on October-13-2021

Code answers related to "js stop scrolling event"

Code answers related to "Javascript"

Browse Popular Code Answers by Language