Skip to content
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

[Bug report] 当缩放到最小然后,按住图片平移后,图片会定住,不能回弹到原始尺寸 #686

Open
yixiu1043 opened this issue Jul 3, 2024 · 3 comments

Comments

@yixiu1043
Copy link

Version

8.2.1

Platforms

Android, iOS

Device Model

All Device Model

flutter info

All flutter version

How to reproduce?

2024-07-03.19.57.06.mp4

Logs

No response

Example code (optional)

No response

Contact

No response

@zmtzawqlp
Copy link
Member

回弹到原始尺寸? 好像没有这个功能呢?

@yixiu1043
Copy link
Author

回弹到原始尺寸? 好像没有这个功能呢?

这是一个缩放BUG,在缩放到最小值后停顿,恢复到原始尺寸的动画没有触发。

@yixiu1043
Copy link
Author

gesture.dart > handleScaleEnd
if (extendedImageSlidePageState != null &&
        extendedImageSlidePageState!.isSliding) {
      extendedImageSlidePageState!.endSlide(details);
      final double? initialScale = _gestureConfig?.initialScale ?? 1.0;
      if (_gestureDetails!.totalScale!.greaterThan(initialScale!) || _gestureDetails!.totalScale!.equalTo(initialScale) ) {
        return;
      }
    }

@yixiu1043 yixiu1043 changed the title [Bug report] 当缩放到最小然后,按住图片平移后,图片不能回弹到原始尺寸 [Bug report] 当缩放到最小然后,按住图片平移后,图片会定住,不能回弹到原始尺寸 Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants