Board Thread:New Features/@comment-5275700-20180709195031/@comment-168424-20180716175120

Fngplg wrote: u don't need any timers for that. (function{ var prevY = 0; $(window).on('scroll', function (e) { var posY = $(window).scrollTop; if (prevY < posY) { $('.wds-global-navigation-wrapper').hide; } else { $('.wds-global-navigation-wrapper').show; } prevY = $(window).scrollTop; }); });

This is simple and it works. Put it in Special:MyPage/global.js or on a per wiki basis at Special:MyPage/wikia.js.