javascript - Disable scrolling down breaks menu links in fullpage.js -


i'm using fullpage.js, especifically onleave function disable scrolling down in website. okay i'm having issues using menu because can scroll in 1 direction.

this code:

onleave: function(index, nextindex, direction){    if (direction == 'up') {      return false;                 } else {     return true;   }; } 

so, if on number 3 section, , want go section number 4, page blocked. how handle exception menu?

what using $.fn.fullpage.setallowscrolling(false, 'down'); ?

from the docs:

adds or remove possibility of scrolling through sections using mouse wheel/trackpad or touch gestures (which active default). note won't disable keyboard scrolling. need use setkeyboardscrolling it.

that won't disable links.

$('#fullpage').fullpage({     afterrender: fuction(){         $.fn.fullpage.setallowscrolling(false, 'down')     } }); 

if want disable keyboard, need use setkeyboardscrolling well.


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 -