Skip to content

Commit

Permalink
Merge pull request #579 from /issues/284
Browse files Browse the repository at this point in the history
#284 Bounding box moves when moving a symbol
  • Loading branch information
jfhenon committed Jun 8, 2021
2 parents 2c15678 + 79d6499 commit 19490c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/svgcanvas/utilities.js
Expand Up @@ -658,7 +658,7 @@ export const getBBox = function (elem) {
// This is resolved in later versions of webkit, perhaps we should
// have a featured detection for correct 'use' behavior?
// ——————————
if (!isWebkit()) {
/* if (!isWebkit()) {
const { x, y, width, height } = ret;
const bb = {
width,
Expand All @@ -667,7 +667,7 @@ export const getBBox = function (elem) {
y: y + Number.parseFloat(selected.getAttribute('y') || 0)
};
ret = bb;
}
} */
} else if (visElemsArr.includes(elname)) {
if (selected) {
try {
Expand Down

0 comments on commit 19490c0

Please sign in to comment.