aboutsummaryrefslogtreecommitdiffstats
path: root/tests/resizable.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/resizable.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/resizable.js')
-rw-r--r--tests/resizable.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/resizable.js b/tests/resizable.js
index 2e7da9adc..d23cbd7b2 100644
--- a/tests/resizable.js
+++ b/tests/resizable.js
@@ -8,6 +8,10 @@ var drag = function(el, dx, dy, complete) {
// speed = sync -> Drag syncrhonously.
// speed = fast|slow -> Drag asyncrhonously - animated.
+ //this mouseover is to work around a limitation in resizable
+ //TODO: fix resizable so handle doesn't require mouseover in order to be used
+ $(el).simulate("mouseover");
+
return $(el).simulate("drag", {
dx: dx||0, dy: dy||0, speed: 'sync', complete: complete
});