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