Skip to content

Commit

Permalink
Fixes #155 : Fixed the delay while moving up the top bar (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
kavithaenair authored and mariobehling committed May 16, 2017
1 parent 8cbc28e commit cfa1bfb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/loklak.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,18 @@ angular.element(document).ready(function () {
if (st <= 100){
$('nav').animate({
top: "0"
}, 40);
}, 10);
$('.sidebar').animate({
top: sidebarTop
}, 40);
}, 10);
}
else if(st > lastScrollTop && st > 100){
$('nav').animate({
top: "-20%"
}, 35);
}, 5);
$('.sidebar').animate({
top: "-5%"
}, 50);
}, 20);
}
lastScrollTop = st;
});
Expand Down

0 comments on commit cfa1bfb

Please sign in to comment.