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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user