From 7e27be91e06268d4e0a75e40ba244d6cefe031f2 Mon Sep 17 00:00:00 2001 From: lubej <9722540+lubej@users.noreply.github.com> Date: Wed, 19 Jul 2023 13:12:24 +0200 Subject: [PATCH] Fix Graph zoomed in value --- .changelog/759.bugfix.md | 1 + src/app/pages/HomePage/Graph/ParaTimeSelector/index.tsx | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 .changelog/759.bugfix.md diff --git a/.changelog/759.bugfix.md b/.changelog/759.bugfix.md new file mode 100644 index 0000000000..96d0e94c29 --- /dev/null +++ b/.changelog/759.bugfix.md @@ -0,0 +1 @@ +Fix Graph zoomed in value diff --git a/src/app/pages/HomePage/Graph/ParaTimeSelector/index.tsx b/src/app/pages/HomePage/Graph/ParaTimeSelector/index.tsx index b5c7fee163..52b2e0f5fb 100644 --- a/src/app/pages/HomePage/Graph/ParaTimeSelector/index.tsx +++ b/src/app/pages/HomePage/Graph/ParaTimeSelector/index.tsx @@ -227,8 +227,8 @@ const ParaTimeSelectorCmp: FC = ({ } } - // true when scale larger than initial zoom - const isZoomedIn = scale > 1.07 + // true when scale larger than "safe" zoom, due to viewport + const isZoomedIn = scale > 1.5 useEffect(() => { onGraphZoomedIn(isZoomedIn)