From c0c920dc82eb0bd3ec2d45defe78574048eedd80 Mon Sep 17 00:00:00 2001 From: Goldy <66202304+THEGOLDENPRO@users.noreply.github.com> Date: Thu, 16 May 2024 00:03:00 +0100 Subject: [PATCH] fix: image only resizes when both width and height of window is changed --- src/components/image.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/image.tsx b/src/components/image.tsx index 052a60d..1cd189c 100644 --- a/src/components/image.tsx +++ b/src/components/image.tsx @@ -73,7 +73,7 @@ export default function RoseImage(props: Props) { (event: Event) => { const size = event.payload; - if (window_size == null || (size.width !== window_size.width && size.height !== window_size.height)) { + if (window_size == null || size.width !== window_size.width || size.height !== window_size.height) { setWindowSize({width: size.width, height: size.height}); } }