summaryrefslogtreecommitdiffhomepage
path: root/gui/src
diff options
context:
space:
mode:
authorHank <hank@mullvad.net>2022-09-28 10:48:03 +0200
committerHank <hank@mullvad.net>2022-10-03 10:54:56 +0200
commitcebaaae728f50b328691333688b3008754649e36 (patch)
tree50679cf77a078564d4223fd73eedecee76fc8633 /gui/src
parentc39e79bfdb76dc19fc8e1ad95266d366f41d4088 (diff)
downloadmullvadvpn-cebaaae728f50b328691333688b3008754649e36.tar.xz
mullvadvpn-cebaaae728f50b328691333688b3008754649e36.zip
Add will-change to TransitionContainer.tsx
Diffstat (limited to 'gui/src')
-rw-r--r--gui/src/renderer/components/TransitionContainer.tsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/gui/src/renderer/components/TransitionContainer.tsx b/gui/src/renderer/components/TransitionContainer.tsx
index 9ccbc7aaba..22ef1665eb 100644
--- a/gui/src/renderer/components/TransitionContainer.tsx
+++ b/gui/src/renderer/components/TransitionContainer.tsx
@@ -60,6 +60,7 @@ export const StyledTransitionContent = styled.div({}, (props: { transition?: IIt
top: 0,
bottom: 0,
zIndex: props.transition?.inFront ? 1 : 0,
+ willChange: 'transform',
transform: `translate3d(${x}, ${y}, 0)`,
transition: `transform ${duration}ms ease-in-out`,
};