Skip to content

Commit 9dc9f22

Browse files
committed
Dialog: Move to top on mousedown instead of mouseup.
1 parent 5e93673 commit 9dc9f22

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

ui/ui.dialog.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ $.widget("ui.dialog", {
6464
role: 'dialog',
6565
'aria-labelledby': titleId
6666
})
67-
.mouseup(function() {
67+
.mousedown(function() {
6868
self.moveToTop();
6969
}),
7070

@@ -82,9 +82,6 @@ $.widget("ui.dialog", {
8282
'ui-corner-all ' +
8383
'ui-helper-clearfix'
8484
)
85-
.mousedown(function() {
86-
self.moveToTop();
87-
})
8885
.prependTo(uiDialog),
8986

9087
uiDialogTitlebarClose = $('<a href="#"/>')

0 commit comments

Comments
 (0)