diff options
author | Eduardo Lundgren <eduardolundgren@gmail.com> | 2008-06-01 13:52:50 +0000 |
---|---|---|
committer | Eduardo Lundgren <eduardolundgren@gmail.com> | 2008-06-01 13:52:50 +0000 |
commit | 985a82c66069de78693868af0a010ca299fdd93d (patch) | |
tree | 2ad2d962de9ad644ab7d98cbf8ad0a6ce98ea0a9 /ui | |
parent | 737ff7309ddc9203d59749cbd988045a33b0e40a (diff) | |
download | jquery-ui-985a82c66069de78693868af0a010ca299fdd93d.tar.gz jquery-ui-985a82c66069de78693868af0a010ca299fdd93d.zip |
userAction fix for top when not defined
Diffstat (limited to 'ui')
-rw-r--r-- | ui/tests/jquery.useraction.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/tests/jquery.useraction.js b/ui/tests/jquery.useraction.js index 510a42e68..b7e19a009 100644 --- a/ui/tests/jquery.useraction.js +++ b/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); |