We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a7269d commit e4768acCopy full SHA for e4768ac
1 file changed
frontend/src/lib/components/editor/WallpaperHero.svelte
@@ -105,8 +105,7 @@
105
106
// CSS `zoom` on <html> scales getBoundingClientRect() but not e.clientX/Y
107
// on webkit2gtk — normalize rect into the same space as the mouse coords.
108
- const zoom =
109
- parseFloat(document.documentElement.style.zoom as string) || 1;
+ const zoom = parseFloat(document.documentElement.style.zoom) || 1;
110
const rectLeft = rect.left / zoom;
111
const rectTop = rect.top / zoom;
112
const rectWidth = rect.width / zoom;
0 commit comments