Skip to content
Permalink
Browse files

Removed mousemove before synchronous drag loop

  • Loading branch information
eduardolundgren committed Jun 5, 2008
1 parent d039818 commit cf96164d54ebdc0bf88adfcce95050f5bfe1c035
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/tests/jquery.simulate.js
@@ -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));
}
},

0 comments on commit cf96164

Please sign in to comment.
You can’t perform that action at this time.