This commit is contained in:
Dean 2024-10-31 10:44:03 +00:00
parent acb5d27d6a
commit dd9057169f
1 changed files with 4 additions and 1 deletions

View File

@ -48,7 +48,10 @@
let blockDims
const updateBlockDims = () => {
const { width, height } = blockEle?.getBoundingClientRect()
if (!blockEle) {
return
}
const { width, height } = blockEle.getBoundingClientRect()
blockDims = { width: width / $view.scale, height: height / $view.scale }
}