diff options
author | Richard Worth <rdworth@gmail.com> | 2008-06-06 03:59:57 +0000 |
---|---|---|
committer | Richard Worth <rdworth@gmail.com> | 2008-06-06 03:59:57 +0000 |
commit | 5dde75c3e2f723ce089f7e4caa440dc054a8cb8f (patch) | |
tree | 395bbdd737933193f38d6cceb3c90a80a5721fb7 | |
parent | 473de51ff0068c1436201e452aa058486fbfe498 (diff) | |
download | jquery-ui-5dde75c3e2f723ce089f7e4caa440dc054a8cb8f.tar.gz jquery-ui-5dde75c3e2f723ce089f7e4caa440dc054a8cb8f.zip |
simulate - round(floor) the center x and y values
-rw-r--r-- | ui/tests/jquery.simulate.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/tests/jquery.simulate.js b/ui/tests/jquery.simulate.js index d2c49ea89..f5168bf3b 100644 --- a/ui/tests/jquery.simulate.js +++ b/ui/tests/jquery.simulate.js @@ -112,7 +112,7 @@ $.extend($.simulate.prototype, { drag: function(el) {
var self = this, center = this.findCenter(this.target),
- options = this.options, x = center.x, y = center.y,
+ options = this.options, x = Math.floor(center.x), y = Math.floor(center.y),
dx = options.dx || 0, dy = options.dy || 0, target = this.target;
var coord = { clientX: x, clientY: y };
this.simulateEvent(target, "mouseover");
|