diff options
Diffstat (limited to 'subprojects/frontend/src/graph/ZoomCanvas.tsx')
-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, |