aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2024-05-26 14:59:00 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2024-05-26 14:59:00 +0200
commitcb9eea351d6785efd3ebfccae5ac9f0e20e1f3b4 (patch)
tree5912282e6ae1144138a8d38dbfa7ef3a16ad8e3f /subprojects
parentchore(deps): bump dependencies (diff)
downloadrefinery-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.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,