Using jQuery UI Draggable, how to avoid drag when using scrollbar?
A long time ago I created a dialog box in my application. The dialog is pretty simple, position absolute, centered in the screen via javascript. Now I have added jQuery UI to the application but I do not want to use jQuery UI's dialogs just because they work differently. But I did make my dialog draggable using jQuery UI as it is very easy: $('#dialog').draggable(); There is one problem with that, some of my dialogs have scrollbars. But using the draggable method, if there is a scrollbar, it bugs because it drags the dialog. Is there a way for the dialog to not drag while using the scrollbar ?