From 8cb281c74e19fe1a68e595ae927a36bd6508154d Mon Sep 17 00:00:00 2001 From: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> Date: Thu, 9 Mar 2023 11:29:00 -0800 Subject: [PATCH] Reverse direction of lightbox animation --- ts/components/Lightbox.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/components/Lightbox.tsx b/ts/components/Lightbox.tsx index d63ca3f98..a514be151 100644 --- a/ts/components/Lightbox.tsx +++ b/ts/components/Lightbox.tsx @@ -309,7 +309,7 @@ export function Lightbox({ thumbnailsAnimation.set({ marginLeft: thumbnailsMarginLeft + - (selectedIndex === 0 ? -1 : 1) * THUMBNAIL_FULL_WIDTH, + (selectedIndex === 0 ? 1 : -1) * THUMBNAIL_FULL_WIDTH, opacity: 0, }); thumbnailsAnimation.start({