summaryrefslogtreecommitdiffhomepage
path: root/gui/src
diff options
context:
space:
mode:
authorOskar Nyberg <oskar@mullvad.net>2021-09-28 17:22:29 +0200
committerOskar Nyberg <oskar@mullvad.net>2021-09-30 14:25:48 +0200
commit480fb1c2bc72d4414aa8b30f1acee3f58c2c1c14 (patch)
tree1ec3783ce5505a898e875c6b94c0c72f76487127 /gui/src
parentcddab80d9c122180b1a1abd5a88d1b0b4215f500 (diff)
downloadmullvadvpn-480fb1c2bc72d4414aa8b30f1acee3f58c2c1c14.tar.xz
mullvadvpn-480fb1c2bc72d4414aa8b30f1acee3f58c2c1c14.zip
Add workaround for blurry map during transitions
Diffstat (limited to 'gui/src')
-rw-r--r--gui/src/renderer/components/SvgMap.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/gui/src/renderer/components/SvgMap.tsx b/gui/src/renderer/components/SvgMap.tsx
index cae3c68ed6..b72ea36bbd 100644
--- a/gui/src/renderer/components/SvgMap.tsx
+++ b/gui/src/renderer/components/SvgMap.tsx
@@ -31,8 +31,10 @@ const mapStyle = {
height: '100%',
backgroundColor: '#192e45',
};
-const zoomableGroupStyle = {
+const zoomableGroupStyle: React.CSSProperties = {
transition: `transform ${MOVE_SPEED}ms ease-out`,
+ // Workaround to prevent map blurryness in Electron 13+
+ zoom: '100.01%',
};
function getMarkerImageStyle(zoom: number) {