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

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

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