mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-10 06:44:44 +00:00
fix getScrollLeftTop
This commit is contained in:
parent
ef1036b58e
commit
5d75b53ab4
1 changed files with 2 additions and 2 deletions
|
|
@ -124,8 +124,8 @@
|
|||
if (element.nodeType === 1 &&
|
||||
origElement !== upperCanvasEl &&
|
||||
fabric.util.getElementStyle(element, 'position') === 'absolute') {
|
||||
left = 0;
|
||||
top = 0;
|
||||
left += element.scrollLeft || 0;
|
||||
top += element.scrollTop || 0;
|
||||
}
|
||||
else if (element === fabric.document) {
|
||||
left = body.scrollLeft || docElement.scrollLeft || 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue