Twenty Fourteen: remove `masthead-fixed` class after window returns to top. Props cainm, fixes #25026.

git-svn-id: https://develop.svn.wordpress.org/trunk@25062 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Lance Willett 2013-08-20 17:36:28 +00:00
parent ca1926490c
commit d45e621a04
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@
if ( $mastheadOffset < 0 )
$mastheadOffset = $masthead.offset().top - $toolbarOffset;
if ( ( window.scrollY >= $mastheadOffset ) && ( $( window ).width() > 769 ) ) {
if ( ( window.scrollY > $mastheadOffset ) && ( $( window ).width() > 769 ) ) {
$masthead.addClass( 'masthead-fixed' );
$maindiv.css( {
marginTop: $masthead.height()