Skip to content
Permalink
Browse files

simulate - round(floor) the center x and y values

  • Loading branch information
rdworth committed Jun 6, 2008
1 parent 473de51 commit 5dde75c3e2f723ce089f7e4caa440dc054a8cb8f
Showing with 1 addition and 1 deletion.
  1. +1 −1 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");

0 comments on commit 5dde75c

Please sign in to comment.
You can’t perform that action at this time.