diff options
author | dan <dan.abramov@gmail.com> | 2024-10-31 16:24:15 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-31 16:24:15 +0000 |
commit | 1e32327de0d46332739761ad831141b6f6a2fd60 (patch) | |
tree | ef9ad194e7f24c016459fc066d968365753c1a52 /src/view/com/lightbox/Lightbox.tsx | |
parent | 6f4703e814723ba8301435cba58f989c9aea3d3f (diff) | |
download | voidsky-1e32327de0d46332739761ad831141b6f6a2fd60.tar.zst |
Measure tapped image coordinates before opening lightbox (#6001)
* Measure image on press * Pass dimensions to the lightbox component
Diffstat (limited to 'src/view/com/lightbox/Lightbox.tsx')
-rw-r--r-- | src/view/com/lightbox/Lightbox.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/view/com/lightbox/Lightbox.tsx b/src/view/com/lightbox/Lightbox.tsx index a7f8fed77..891be3f9c 100644 --- a/src/view/com/lightbox/Lightbox.tsx +++ b/src/view/com/lightbox/Lightbox.tsx @@ -35,6 +35,7 @@ export function Lightbox() { {uri: opts.profile.avatar || '', thumbUri: opts.profile.avatar || ''}, ]} initialImageIndex={0} + thumbDims={opts.thumbDims} visible onRequestClose={onClose} FooterComponent={LightboxFooter} @@ -46,6 +47,7 @@ export function Lightbox() { <ImageView images={opts.images.map(img => ({...img}))} initialImageIndex={opts.index} + thumbDims={opts.thumbDims} visible onRequestClose={onClose} FooterComponent={LightboxFooter} |