Make WordPress Core

Changeset 25062


Ignore:
Timestamp:
08/20/2013 05:36:28 PM (11 years ago)
Author:
lancewillett
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfourteen/js/theme.js

    r25060 r25062  
    111111                $mastheadOffset = $masthead.offset().top - $toolbarOffset;
    112112
    113             if ( ( window.scrollY >= $mastheadOffset ) && ( $( window ).width() > 769 ) ) {
     113            if ( ( window.scrollY > $mastheadOffset ) && ( $( window ).width() > 769 ) ) {
    114114                $masthead.addClass( 'masthead-fixed' );
    115115                $maindiv.css( {
Note: See TracChangeset for help on using the changeset viewer.