Updated to lock the navbar on changeMode

This commit is contained in:
Wu Cheng-Han
2015-09-24 13:55:02 +08:00
parent c9f35b9aa0
commit 33cdec2fd4
2 changed files with 12 additions and 1 deletions

View File

@@ -36,7 +36,7 @@
target.clearQueue();
target.stop();
var currentScroll = $(this).scrollTop();
if (currentScroll > hideOffset) {
if (currentScroll > hideOffset && !target.hasClass('locked')) {
if(Math.abs(previousScroll - currentScroll) < 50) return;
if (currentScroll > previousScroll) {
// Action on scroll down