|
|
@ -232,20 +232,20 @@ |
|
|
|
|
|
|
|
|
|
|
|
createMouseEvent: function (eventName, originalEvent) { |
|
|
|
createMouseEvent: function (eventName, originalEvent) { |
|
|
|
var e = new MouseEvent(eventName, { |
|
|
|
var e = new MouseEvent(eventName, { |
|
|
|
'view' : window, |
|
|
|
view : window, |
|
|
|
'detail' : originalEvent.detail, |
|
|
|
detail : originalEvent.detail, |
|
|
|
'bubbles' : true, |
|
|
|
bubbles : true, |
|
|
|
'cancelable' : true, |
|
|
|
cancelable : true, |
|
|
|
'target' : this.target || originalEvent.relatedTarget, |
|
|
|
target : this.target || originalEvent.relatedTarget, |
|
|
|
'clientX' : this.x || originalEvent.clientX, |
|
|
|
clientX : this.x || originalEvent.clientX, |
|
|
|
'clientY' : this.y || originalEvent.clientY, |
|
|
|
clientY : this.y || originalEvent.clientY, |
|
|
|
'screenX' : this.x || originalEvent.screenX, |
|
|
|
screenX : this.x || originalEvent.screenX, |
|
|
|
'screenY' : this.y || originalEvent.screenY, |
|
|
|
screenY : this.y || originalEvent.screenY, |
|
|
|
'ctrlKey' : originalEvent.ctrlKey, |
|
|
|
ctrlKey : originalEvent.ctrlKey, |
|
|
|
'shiftKey' : originalEvent.shiftKey, |
|
|
|
shiftKey : originalEvent.shiftKey, |
|
|
|
'altKey' : originalEvent.altKey, |
|
|
|
altKey : originalEvent.altKey, |
|
|
|
'metaKey' : originalEvent.metaKey, |
|
|
|
metaKey : originalEvent.metaKey, |
|
|
|
'button' : originalEvent.button |
|
|
|
button : originalEvent.button |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
e.synthetic = true; |
|
|
|
e.synthetic = true; |
|
|
|