Make WordPress Core

Changeset 32966


Ignore:
Timestamp:
06/27/2015 02:14:29 AM (9 years ago)
Author:
azaozz
Message:

Press This: fix iOS bug that prevents closing of the split button when tapping outside of it.
See #32757.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/press-this.js

    r32920 r32966  
    1717            isHidden              = 'is-hidden',
    1818            offscreenHidden       = isOffScreen + ' ' + isHidden,
     19            iOS                   = /iPad|iPod|iPhone/.test( window.navigator.userAgent ),
    1920            transitionEndEvent    = ( function() {
    2021                var style = document.documentElement.style;
     
    620621                window.tagBox.init();
    621622            }
     623
     624            // iOS doesn't fire click events on "standard" elements without this...
     625            if ( iOS ) {
     626                $( document.body ).css( 'cursor', 'pointer' );
     627            }
    622628        }
    623629
Note: See TracChangeset for help on using the changeset viewer.