Make WordPress Core

Ticket #25026: ticket25026.diff

File ticket25026.diff, 636 bytes (added by cainm, 12 years ago)
  • wp-content/themes/twentyfourteen/js/theme.js

     
    110110                        if ( $mastheadOffset < 0 )
    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( {
    116116                                        marginTop: $masthead.height()