mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
removed x, y as they are not browser event options. Use clientX and clientY
This commit is contained in:
parent
c8207f4b30
commit
1d7197f719
@ -49,7 +49,7 @@ $.extend($.simulate.prototype, {
|
||||
var evt;
|
||||
var e = $.extend({
|
||||
bubbles: true, cancelable: (type != "mousemove"), view: window, detail: 0,
|
||||
screenX: 0, screenY: 0, clientX: options.x || 0, clientY: options.y || 0,
|
||||
screenX: 0, screenY: 0, clientX: 0, clientY: 0,
|
||||
ctrlKey: false, altKey: false, shiftKey: false, metaKey: false,
|
||||
button: 0, relatedTarget: undefined
|
||||
}, options);
|
||||
@ -118,7 +118,7 @@ $.extend($.simulate.prototype, {
|
||||
options = this.options, x = center.x, y = center.y,
|
||||
dx = options.dx || 0, dy = options.dy || 0, target = this.target;
|
||||
|
||||
var coord = { x: x, y: y, complete: null }, evt;
|
||||
var coord = { clientX: x, clientX: y, complete: null }, evt;
|
||||
this.simulateEvent(target, "mouseover", coord);
|
||||
this.simulateEvent(target, "mousedown", coord);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user