We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc4d6eb commit 628976aCopy full SHA for 628976a
LICENSE
@@ -1,4 +1,4 @@
1
-Copyright (c) 2011-2020 PlayCanvas Ltd.
+Copyright (c) 2011-2022 PlayCanvas Ltd.
2
3
Permission is hereby granted, free of charge, to any person obtaining a copy
4
of this software and associated documentation files (the "Software"), to deal
src/graph-view-node.js
@@ -455,7 +455,7 @@ class GraphViewNode {
455
switch (event) {
456
case 'updatePosition': {
457
nodeView.on('element:pointerup', () => {
458
- var newPos = this._graphView.getWindowToGraphPosition(nodeView.el.getBoundingClientRect());
+ var newPos = this._graphView.getWindowToGraphPosition(nodeView.getBBox());
459
callback(this.nodeData.id, newPos);
460
});
461
break;
0 commit comments