Customize: Add workaround for Safari bug causing preview frame to be unscrollable via mousewheel
after a refresh.
Props westonruter, tristangemus. Fixes #38149. git-svn-id: https://develop.svn.wordpress.org/trunk@38742 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
03bc7a1063
commit
6c3301476d
@ -3105,6 +3105,7 @@
|
||||
|
||||
// Create the iframe and inject the html content.
|
||||
self.iframe = $( '<iframe />', { 'title': api.l10n.previewIframeTitle } ).appendTo( self.container );
|
||||
self.iframe.attr( 'onmousewheel', '' ); // Workaround for Safari bug. See WP Trac #38149.
|
||||
|
||||
// Bind load event after the iframe has been added to the page;
|
||||
// otherwise it will fire when injected into the DOM.
|
||||
|
Loading…
Reference in New Issue
Block a user