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:
parent
ca1926490c
commit
d45e621a04
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user