]> source.dussan.org Git - jquery-ui.git/commitdiff
simulate - round(floor) the center x and y values
authorRichard Worth <rdworth@gmail.com>
Fri, 6 Jun 2008 03:59:57 +0000 (03:59 +0000)
committerRichard Worth <rdworth@gmail.com>
Fri, 6 Jun 2008 03:59:57 +0000 (03:59 +0000)
ui/tests/jquery.simulate.js

index d2c49ea891fc33455f6d3dee31c989e8b4b26de0..f5168bf3bc11d7496a747085a13aa4675fe95965 100644 (file)
@@ -112,7 +112,7 @@ $.extend($.simulate.prototype, {
        \r
        drag: function(el) {\r
                var self = this, center = this.findCenter(this.target), \r
-                       options = this.options, x = center.x, y = center.y\r
+                       options = this.options, x = Math.floor(center.x), y = Math.floor(center.y)\r
                        dx = options.dx || 0, dy = options.dy || 0, target = this.target;\r
                var coord = { clientX: x, clientY: y };\r
                this.simulateEvent(target, "mouseover");\r