We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
x
y
1 parent 779bcef commit fce39f8Copy full SHA for fce39f8
jquery.simulate.js
@@ -299,10 +299,10 @@ $.extend( $.simulate.prototype, {
299
center = options.handle === "corner" ? findCorner( target ) : findCenter( target ),
300
x = Math.floor( center.x ),
301
y = Math.floor( center.y ),
302
- dx = options.dx || 0,
303
- dy = options.dy || 0,
304
- moves = options.moves || 3,
305
- coord = { clientX: x, clientY: y };
+ coord = { clientX: x, clientY: y },
+ dx = options.dx || ( options.x !== undefined ? options.x - x : 0 ),
+ dy = options.dy || ( options.y !== undefined ? options.y - y : 0 ),
+ moves = options.moves || 3;
306
307
this.simulateEvent( target, "mousedown", coord );
308
0 commit comments