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:
Weston Ruter 2016-10-06 20:16:19 +00:00
parent 03bc7a1063
commit 6c3301476d
1 changed files with 1 additions and 0 deletions

View File

@ -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.