mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Dialog: Move to top on mousedown instead of mouseup.
This commit is contained in:
parent
5e936731bd
commit
9dc9f22201
@ -64,7 +64,7 @@ $.widget("ui.dialog", {
|
||||
role: 'dialog',
|
||||
'aria-labelledby': titleId
|
||||
})
|
||||
.mouseup(function() {
|
||||
.mousedown(function() {
|
||||
self.moveToTop();
|
||||
}),
|
||||
|
||||
@ -82,9 +82,6 @@ $.widget("ui.dialog", {
|
||||
'ui-corner-all ' +
|
||||
'ui-helper-clearfix'
|
||||
)
|
||||
.mousedown(function() {
|
||||
self.moveToTop();
|
||||
})
|
||||
.prependTo(uiDialog),
|
||||
|
||||
uiDialogTitlebarClose = $('<a href="#"/>')
|
||||
|
Loading…
Reference in New Issue
Block a user