mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-28 16:34:25 +00:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user