mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Mouse: Fixed #4061: Prevent errors when manually triggering mousedown events on elements that use $.ui.mouse (event.originalEvent isn't defined).
This commit is contained in:
parent
27a7442a37
commit
57f0188239
@ -423,6 +423,8 @@ $.ui.mouse = {
|
||||
|
||||
_mouseDown: function(event) {
|
||||
// don't let more than one widget handle mouseStart
|
||||
// TODO: figure out why we have to use originalEvent
|
||||
event.originalEvent = event.originalEvent || {};
|
||||
if (event.originalEvent.mouseHandled) { return; }
|
||||
|
||||
// we may have missed mouseup (out of window)
|
||||
|
Loading…
Reference in New Issue
Block a user