From d45e621a0444d82d59fb7830f517b329ad14fd1f Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Tue, 20 Aug 2013 17:36:28 +0000 Subject: [PATCH] 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 --- src/wp-content/themes/twentyfourteen/js/theme.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-content/themes/twentyfourteen/js/theme.js b/src/wp-content/themes/twentyfourteen/js/theme.js index 431e681594..6d430c46f6 100644 --- a/src/wp-content/themes/twentyfourteen/js/theme.js +++ b/src/wp-content/themes/twentyfourteen/js/theme.js @@ -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()