Here is the best I could come up with to solve this problem (I had the same problem) using the functions mentioned in JasCav's answer above ( these functions ):
dialogClass: 'dialog_fixed', create: function(event, ui) { disable_scroll(); // disable while dialog is visible $('#dialog_form').hover( function() { enable_scroll(); }, // mouse over dialog function() { disable_scroll(); } // mouse not over dialog ); }, beforeClose: function(event, ui) { enable_scroll(); // re-enable when dialog is closed },
css:
.dialog_fixed { position:fixed !important; }
and it just captures the dialog on the page, which perhaps we no longer need.
This allows you to scroll with the mouse when the mouse is above the dialog, but not when it is outside the dialog. Unfortunately, it will still scroll to the main page when the mouse is over the dialog, and you scroll the end of the contents inside the dialog box (in IE immediately, in Safari and Firefox after a short delay). I would like to know how to fix this.
I tested this in Safari 5.1.5, Firefox 12, and IE 9.
Craig Nakamoto May 02 '12 at 19:30 2012-05-02 19:30
source share