-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
fix(mobile): swiping between assets when bottom sheet is open #20842
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| heroAttributes: PhotoViewHeroAttributes(tag: '${asset.heroTag}_$heroOffset'), | ||
| filterQuality: FilterQuality.high, | ||
| tightMode: true, | ||
| initialScale: PhotoViewComputedScale.contained * 0.999, |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
|
@mertalev Can you help me rebase this over main? |
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.