aboutsummaryrefslogtreecommitdiffstats
path: root/tests/simulate/jquery.simulate.js
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2008-06-21 10:52:58 +0000
committerRichard Worth <rdworth@gmail.com>2008-06-21 10:52:58 +0000
commit2361bda9bae169c92fb05abc935b834cbb119919 (patch)
tree2de68401158d38060629657334c2f016886b0bb8 /tests/simulate/jquery.simulate.js
parent2e920f0fea52c60acb9d86f1465265308e622a37 (diff)
downloadjquery-ui-2361bda9bae169c92fb05abc935b834cbb119919.tar.gz
jquery-ui-2361bda9bae169c92fb05abc935b834cbb119919.zip
simulate - drag: added mousemove [+1, +1] after mousedown. Removed mouseover and mouseout as they're not minimal/required for drag. They were there as work-around for resizable. Moved work-around to resizable test.
Diffstat (limited to 'tests/simulate/jquery.simulate.js')
-rw-r--r--tests/simulate/jquery.simulate.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/simulate/jquery.simulate.js b/tests/simulate/jquery.simulate.js
index a0dc290da..b55687388 100644
--- a/tests/simulate/jquery.simulate.js
+++ b/tests/simulate/jquery.simulate.js
@@ -115,13 +115,13 @@ $.extend($.simulate.prototype, {
options = this.options, x = Math.floor(center.x), y = Math.floor(center.y),
dx = options.dx || 0, dy = options.dy || 0, target = this.target;
var coord = { clientX: x, clientY: y };
- this.simulateEvent(target, "mouseover");
this.simulateEvent(target, "mousedown", coord);
+ coord = { clientX: x + 1, clientY: y + 1 };
+ this.simulateEvent(document, "mousemove", coord);
coord = { clientX: x + dx, clientY: y + dy };
this.simulateEvent(document, "mousemove", coord);
this.simulateEvent(document, "mousemove", coord);
this.simulateEvent(target, "mouseup", coord);
- this.simulateEvent(target, "mouseout");
},
findCenter: function(el) {
var el = $(this.target), o = el.offset();