Dave's Brain

Browse - Programming Tips - Why can't I capture mouse movements in a jquery-ui modal dialog?

Date: 2016jul1
Language: javaScript
Library: jqueryui

Q.  Why can't I capture mouse movements in a jquery-ui modal dialog?

A.  It seems that the modal dialog captures the mouse.  To disable user clicks
outside the dialog, I assume.  A solution is to make your dialog non-modal.
Its better than nothing.

$('#my_dialog').dialog({ modal: false // ... other options ... });

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.