From 45a9fcbfd25fe95cb5bd77005780f85a105c770b Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Fri, 2 Dec 2022 08:44:28 -0800 Subject: [PATCH] viewer: add zoom will-change --- src/components/Viewer.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/Viewer.vue b/src/components/Viewer.vue index aee50d8e..c554bb85 100644 --- a/src/components/Viewer.vue +++ b/src/components/Viewer.vue @@ -1105,10 +1105,12 @@ export default class Viewer extends Mixins(GlobalMixin) { .pswp__zoom-wrap { width: 100%; + will-change: transform; } img.pswp__img { object-fit: contain; + will-change: width, height; } .pswp__button {