Skip to content

Commit

Permalink
Build.
Browse files Browse the repository at this point in the history
Last commit was missing the build files.
  • Loading branch information
eduardomb committed Jul 4, 2014
1 parent 70e5506 commit e241b23
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dist/scroll-up-bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
var $window = $(window),
$document = $(document),
$topbar = this,
topbarHeight = $topbar.outerHeight(),
lastY = $window.scrollTop(), // Use last Y to detect scroll direction.
iOS = /(iPad|iPhone|iPod)/g.test(navigator.userAgent),
timeout;
Expand All @@ -16,6 +15,7 @@
if (!iOS) {
$window.scroll(function() {
var y = $window.scrollTop(),
topbarHeight = $topbar.outerHeight(),
offsetBottom = $topbar.offset().top + topbarHeight,
barIsHidden = offsetBottom <= y && y >= topbarHeight;

Expand Down Expand Up @@ -83,7 +83,7 @@
$(document).on('touchend', function () {
var y = $window.scrollTop();

if (y < lastY || y < topbarHeight) { // Scrolling up
if (y < lastY || y < $topbar.outerHeight()) { // Scrolling up
$topbar.slideDown();
} else if (y > lastY) { // Scrolling down
$topbar.slideUp();
Expand Down
2 changes: 1 addition & 1 deletion dist/scroll-up-bar.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e241b23

Please sign in to comment.