start animation asap
This commit is contained in:
@@ -70,9 +70,7 @@ class ExpoBlueskyContextMenuView: ExpoView, UIContextMenuInteractionDelegate {
|
|||||||
willPerformPreviewActionForMenuWith configuration: UIContextMenuConfiguration,
|
willPerformPreviewActionForMenuWith configuration: UIContextMenuConfiguration,
|
||||||
animator: UIContextMenuInteractionCommitAnimating
|
animator: UIContextMenuInteractionCommitAnimating
|
||||||
) {
|
) {
|
||||||
animator.addCompletion { [weak self] in
|
self.onPreviewPress([:])
|
||||||
self?.onPreviewPress([:])
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK: - Targeted preview
|
// MARK: - Targeted preview
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import {Trans} from '@lingui/react/macro'
|
|||||||
|
|
||||||
import {type Dimensions} from '#/lib/media/types'
|
import {type Dimensions} from '#/lib/media/types'
|
||||||
import {useLargeAltBadgeEnabled} from '#/state/preferences/large-alt-badge'
|
import {useLargeAltBadgeEnabled} from '#/state/preferences/large-alt-badge'
|
||||||
import {atoms as a, useTheme} from '#/alf'
|
import {atoms as a, tokens, useTheme} from '#/alf'
|
||||||
import {MediaInsetBorder} from '#/components/MediaInsetBorder'
|
import {MediaInsetBorder} from '#/components/MediaInsetBorder'
|
||||||
import {ImageContextMenu} from '#/components/Post/Embed/ImageContextMenu'
|
import {ImageContextMenu} from '#/components/Post/Embed/ImageContextMenu'
|
||||||
import {PostEmbedViewContext} from '#/components/Post/Embed/types'
|
import {PostEmbedViewContext} from '#/components/Post/Embed/types'
|
||||||
@@ -72,6 +72,7 @@ export function GalleryItem({
|
|||||||
fullsizeUri={image.fullsize}
|
fullsizeUri={image.fullsize}
|
||||||
thumbUri={image.thumb}
|
thumbUri={image.thumb}
|
||||||
aspectRatio={aspect}
|
aspectRatio={aspect}
|
||||||
|
borderRadius={tokens.borderRadius.md}
|
||||||
onPreviewPress={openLightboxAtIndex}
|
onPreviewPress={openLightboxAtIndex}
|
||||||
style={a.flex_1}>
|
style={a.flex_1}>
|
||||||
<Pressable
|
<Pressable
|
||||||
|
|||||||
Reference in New Issue
Block a user