Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Commit

Permalink
TOP-179 fix firefox scroll problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksey Razbakov committed Feb 13, 2017
1 parent f9e7a8e commit 9a9c96a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sticky-header.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ var jQuery = require('jquery');
return false;
}

var scrollbarVerticalPosition = $body.scrollTop();

This comment has been minimized.

Copy link
@razbakov

razbakov Mar 23, 2017

test

var scrollbarVerticalPosition = $(window).scrollTop();

var isSticky = false;
var isScrollingDown = scrollbarVerticalPosition > scrollbarPreviousVerticalPosition;
Expand Down

0 comments on commit 9a9c96a

Please sign in to comment.