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

Built from https://develop.svn.wordpress.org/trunk@25062


git-svn-id: http://core.svn.wordpress.org/trunk@25048 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Lance Willett 2013-08-20 17:37:10 +00:00
parent 1ed0ba3c18
commit c0dcebf0a4
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()