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

Popular posts from this blog

php - Zend Framework / Skeleton-Application / Composer install issue -

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -