aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ui/tests/jquery.simulate.js2
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");