Skip to content

Commit

Permalink
Merge pull request #2128 from asturur/pointer-in-scrollable
Browse files Browse the repository at this point in the history
fix getScrollLeftTop
  • Loading branch information
kangax committed Jun 11, 2015
2 parents ead7d40 + 5ba6b54 commit 2d2712c
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/util/dom_misc.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,7 @@
firstFixedAncestor = element;
}

if (element.nodeType === 1 &&
origElement !== upperCanvasEl &&
fabric.util.getElementStyle(element, 'position') === 'absolute') {
left = 0;
top = 0;
}
else if (element === fabric.document) {
if (element === fabric.document) {
left = body.scrollLeft || docElement.scrollLeft || 0;
top = body.scrollTop || docElement.scrollTop || 0;
}
Expand Down

0 comments on commit 2d2712c

Please sign in to comment.