From 5dde75c3e2f723ce089f7e4caa440dc054a8cb8f Mon Sep 17 00:00:00 2001 From: Richard Worth Date: Fri, 6 Jun 2008 03:59:57 +0000 Subject: [PATCH] simulate - round(floor) the center x and y values --- ui/tests/jquery.simulate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- 2.39.5