Skip to content

Commit

Permalink
$(window).focus in Chrome only fires if the window
Browse files Browse the repository at this point in the history
had lost focus before and regains it after. That means
it won't fire when the site loads for the first time.
  • Loading branch information
ristovskiv committed Apr 5, 2015
1 parent d5e4d63 commit 756cdaa
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions _includes/javascripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
var $window = $(window),
$image = $('.post-image-image, .teaserimage-image');

$window.on('focus', function(){
$window.on('scroll', function() {
var top = $window.scrollTop();

Expand All @@ -35,7 +34,6 @@
}
}
});
});

});
}(jQuery));
Expand Down

0 comments on commit 756cdaa

Please sign in to comment.