// 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
});
options = this.options, x = Math.floor(center.x), y = Math.floor(center.y), \r
dx = options.dx || 0, dy = options.dy || 0, target = this.target;\r
var coord = { clientX: x, clientY: y };\r
- this.simulateEvent(target, "mouseover");\r
this.simulateEvent(target, "mousedown", coord);\r
+ coord = { clientX: x + 1, clientY: y + 1 };\r
+ this.simulateEvent(document, "mousemove", coord);\r
coord = { clientX: x + dx, clientY: y + dy };\r
this.simulateEvent(document, "mousemove", coord);\r
this.simulateEvent(document, "mousemove", coord);\r
this.simulateEvent(target, "mouseup", coord);\r
- this.simulateEvent(target, "mouseout");\r
},\r
findCenter: function(el) {\r
var el = $(this.target), o = el.offset();\r