Skip to content

Commit

Permalink
Fix Graph zoomed in value
Browse files Browse the repository at this point in the history
  • Loading branch information
lubej committed Jul 19, 2023
1 parent feeed6e commit 7e27be9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .changelog/759.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix Graph zoomed in value
4 changes: 2 additions & 2 deletions src/app/pages/HomePage/Graph/ParaTimeSelector/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ const ParaTimeSelectorCmp: FC<ParaTimeSelectorProps> = ({
}
}

// 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)
Expand Down

0 comments on commit 7e27be9

Please sign in to comment.