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

See #32757.

git-svn-id: https://develop.svn.wordpress.org/trunk@32966 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2015-06-27 02:14:29 +00:00
parent 550763988b
commit 44eaf91b75
1 changed files with 6 additions and 0 deletions

View File

@ -16,6 +16,7 @@
isOffScreen = 'is-off-screen',
isHidden = 'is-hidden',
offscreenHidden = isOffScreen + ' ' + isHidden,
iOS = /iPad|iPod|iPhone/.test( window.navigator.userAgent ),
transitionEndEvent = ( function() {
var style = document.documentElement.style;
@ -619,6 +620,11 @@
if ( window.tagBox ) {
window.tagBox.init();
}
// iOS doesn't fire click events on "standard" elements without this...
if ( iOS ) {
$( document.body ).css( 'cursor', 'pointer' );
}
}
/**