Skip to content

Conversation

@mertalev
Copy link
Member

Description

After #20637, it is possible for scale and animation calculations to be off when swiping between assets with the bottom sheet open. As this is deeply related to photo_view internals, the quick fix is to disable loading the cached thumbnail in this specific case.

heroAttributes: PhotoViewHeroAttributes(tag: '${asset.heroTag}_$heroOffset'),
filterQuality: FilterQuality.high,
tightMode: true,
initialScale: PhotoViewComputedScale.contained * 0.999,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is for fixing the arithmetic error that causes double swiping on iOS

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was already fixed in #18749's hit test arithmetic change. I haven't gotten any double swipes without the multiplier, so I don't think it's needed unless there was another reason for it @shenlong-tanwen

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, this was added as part of the PR to fix the double swipe issue along with the arithmetic change. I don't think we really tested that PR without the multiplier, but if it works without this, then we can remove it

@shenlong-tanwen
Copy link
Member

@mertalev Can you help me rebase this over main?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants