I am using jQuery UI dialog with modal=true . In Chrome and Safari, this disables scrolling using the scroll bar and cursor keys (scrolling with the mouse wheel and page up / down still works).
This is a problem if the dialogue is too high to fit on one page - users on the laptop are upset.
Someone picked up these three months ago on the jQuery error tracker - http://dev.jqueryui.com/ticket/4671 - this does not seem to be committing, it is a priority. :)
So somebody:
- Do you have a fix for this?
- proposed a workaround that would provide a decent use experience?
I am experimenting with mouseover / scrollto on form bits, but this is not a great solution :(
EDIT: props in Rowan Beentje (which is not on SO afaict) to find a solution to this. The jQuery user interface prevents scrolling by capturing mouseup / mousedown events. Thus, the code below fixes this:
$("dialogId").dialog({ open: function(event, ui) { window.setTimeout(function() { jQuery(document).unbind('mousedown.dialog-overlay') .unbind('mouseup.dialog-overlay'); }, 100); }, modal: true });
Use at your own risk, I do not know what other unfashionable behavior can cancel this material.
jquery google-chrome safari jquery-ui
alexis.kennedy Oct 24 '09 at 10:44 2009-10-24 10:44
source share