Removed mousemove before synchronous drag loop

This commit is contained in:
Eduardo Lundgren 2008-06-05 00:23:48 +00:00
parent d039818cc5
commit cf96164d54

View File

@ -128,7 +128,6 @@ $.extend($.simulate.prototype, {
var coord = { x: x, y: y, complete: null }, evt;
this.simulateEvent(target, "mouseover", coord);
this.simulateEvent(target, "mousedown", coord);
this.simulateEvent(target, "mousemove", coord);
var drag = function(x, y) {
evt = self.simulateEvent(target, "mousemove", $.extend(coord, { x: x, y: y }));
@ -162,6 +161,7 @@ $.extend($.simulate.prototype, {
for (var dt = 1; dt <= range; dt++) {
if (dt <= mdx) x = center.x + sigx*dt;
if (dt <= mdy) y = center.y + sigy*dt;
console.log(x+':'+y);
(fn && fn(x, y));
}
},