aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/frontend/src/graph/ZoomCanvas.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'subprojects/frontend/src/graph/ZoomCanvas.tsx')
-rw-r--r--subprojects/frontend/src/graph/ZoomCanvas.tsx6
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
43const 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.
47const useZoom = CSS.supports('zoom: reset');
44 48
45export default function ZoomCanvas({ 49export default function ZoomCanvas({
46 children, 50 children,