This commit is contained in:
Seth Forsgren 2022-12-09 09:13:54 -08:00
parent 765dacb52b
commit 045eff86e4
1 changed files with 2 additions and 2 deletions

View File

@ -53,8 +53,8 @@ export default function SpectrogramViewer({
// if window is between 768px and 1068px, this scales the image to fit using a scaler // if window is between 768px and 1068px, this scales the image to fit using a scaler
const imageScaler = window.innerHeight / 3.40; const imageScaler = window.innerHeight / 3.40;
const boxScaler = window.innerHeight / 3.76; const boxScaler = window.innerHeight / 3.76;
const spectrogramImageScale = window.innerWidth > 767 && window.innerWidth < 1300 ? window.innerWidth / imageScaler : 5; const spectrogramImageScale = window.innerWidth > 767 && window.innerWidth < 1350 ? window.innerWidth / imageScaler : 5;
const spectrogramBoxScale = window.innerWidth > 767 && window.innerWidth < 1300 ? window.innerWidth / boxScaler : 5.5; const spectrogramBoxScale = window.innerWidth > 767 && window.innerWidth < 1350 ? window.innerWidth / boxScaler : 5.5;
return ( return (
<group> <group>