Skip to content
Permalink
Browse files

userAction fix for top when not defined

  • Loading branch information
eduardolundgren committed Jun 1, 2008
1 parent 737ff73 commit 985a82c66069de78693868af0a010ca299fdd93d
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/tests/jquery.useraction.js
@@ -152,7 +152,7 @@ $.extend($.userAction.prototype, {
self.down(target);

var mdx = Math.abs(dx)||0, mdy = Math.abs(dy)||0, range = Math.max(mdx, mdy),
sx = dx/mdx, sy = dy/mdy;
sx = dx/mdx||1, sy = dy/mdy||1;

for (var dt = 1; dt <= range; dt++) {
var x = center.x + sx*(dt <= mdx ? dt : 0), y = center.y + sy*(dt <= mdy ? dt : 0);

0 comments on commit 985a82c

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