diff options
author | 2024-05-26 14:59:00 +0200 | |
---|---|---|
committer | 2024-05-26 14:59:00 +0200 | |
commit | cb9eea351d6785efd3ebfccae5ac9f0e20e1f3b4 (patch) | |
tree | 5912282e6ae1144138a8d38dbfa7ef3a16ad8e3f /subprojects | |
parent | chore(deps): bump dependencies (diff) | |
download | refinery-cb9eea351d6785efd3ebfccae5ac9f0e20e1f3b4.tar.gz refinery-cb9eea351d6785efd3ebfccae5ac9f0e20e1f3b4.tar.zst refinery-cb9eea351d6785efd3ebfccae5ac9f0e20e1f3b4.zip |
fix(frontend): broken zoom: property in Firefox
Diffstat (limited to 'subprojects')
-rw-r--r-- | subprojects/frontend/src/graph/ZoomCanvas.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/subprojects/frontend/src/graph/ZoomCanvas.tsx b/subprojects/frontend/src/graph/ZoomCanvas.tsx index 8f4f1776..07e44a12 100644 --- a/subprojects/frontend/src/graph/ZoomCanvas.tsx +++ b/subprojects/frontend/src/graph/ZoomCanvas.tsx | |||
@@ -40,7 +40,11 @@ export type FitZoomCallback = ((newSize?: { | |||
40 | }) => void) & | 40 | }) => void) & |
41 | ((newSize: boolean) => void); | 41 | ((newSize: boolean) => void); |
42 | 42 | ||
43 | const useZoom = 'zoom' in document.body.style; | 43 | // `zoom: reset;` is specific to WebKit (but not Blink). |
44 | // `transform: scale();` makes zooming in on WebKit blurry, | ||
45 | // but we should prefer it for Blink for performance reasons | ||
46 | // and also for Gecko, where `zoom:` is broken for zooming in SVG. | ||
47 | const useZoom = CSS.supports('zoom: reset'); | ||
44 | 48 | ||
45 | export default function ZoomCanvas({ | 49 | export default function ZoomCanvas({ |
46 | children, | 50 | children, |