diff --git a/package.json b/package.json index db81a12..c10d968 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bitfeed-client", - "version": "1.4.6", + "version": "1.4.7", "scripts": { "build": "rollup -c", "dev": "rollup -c -w", diff --git a/src/components/TxViz.svelte b/src/components/TxViz.svelte index fe059cf..f84fcb7 100644 --- a/src/components/TxViz.svelte +++ b/src/components/TxViz.svelte @@ -58,12 +58,15 @@ }) function resize () { - width = window.innerWidth - 20 - height = window.innerHeight - 20 - txController.resize({ - width, - height - }) + if (width !== window.innerWidth - 20 || height !== window.innerHeight - 20) { + // don't force resize unless the viewport has actually changed + width = window.innerWidth - 20 + height = window.innerHeight - 20 + txController.resize({ + width, + height + }) + } } function hideBlock () { @@ -354,7 +357,7 @@ } - +