Skip to content

Commit

Permalink
fix: correct chrome's clientBoundingBox
Browse files Browse the repository at this point in the history
  • Loading branch information
yoannmoinet committed Sep 6, 2015
1 parent f22afad commit b94bc43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nipplejs.js
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,8 @@ Nipple.prototype.onstart = function (evt) {
};

this.backPos = {
x: this.pos.x - (scroll.x + this.box.x + this.options.size / 2),
y: this.pos.y - (scroll.y + this.box.y + this.options.size / 2)
x: this.pos.x - (scroll.x + this.box.left + this.options.size / 2),
y: this.pos.y - (scroll.y + this.box.top + this.options.size / 2)
};

this.bindEvt(document, 'move')
Expand Down

0 comments on commit b94bc43

Please sign in to comment.