#284 Bounding box moves when moving a symbol

master
agriyadev5 2021-06-08 18:47:40 +05:30
parent 2c15678e51
commit 79d64993e2
1 changed files with 2 additions and 2 deletions

View File

@ -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,
@ -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 {