javascript - Preventing downward scroll -
i looking try , prevent downward scroll whilst allowing upward scroll possible using either css or javascript/jquery?
you can use stoppropogation , preventdefault, seen here > jquery or javascript - how disable window scroll without overflow:hidden;
stoppropogation stops event bubbling parents , preventdefault attempts cancel event if possible.
so bind these scroll handler.
$(window).scroll(function(e){ e.preventdefault(); e.stoppropogation(); });
Comments
Post a Comment