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

[Discussions] 使用ExtendedImageGesturePageView的时候,双指放大图片不是很灵敏 #631

Open
FZY456 opened this issue Oct 17, 2023 · 12 comments
Assignees

Comments

@FZY456
Copy link

FZY456 commented Oct 17, 2023

Content

用食指和中指向俩边滑动以放大图片,但总会识别成左右切换图片。

我是直接下载demo运行在安卓手机上,下面是测试的视频。

92EA156DE1E54CDF42E2FCE3062EEC2A.1.mp4

环境:

 Flutter (Channel stable, 3.13.5, on Microsoft Windows [版本 10.0.19042.630], locale zh-CN)
    • Flutter version 3.13.5 on channel stable at D:\flutter\flutter                          
    • Upstream repository https://github.com/flutter/flutter/                                 
    • FLUTTER_GIT_URL = https://github.com/flutter/flutter/                                   
    • Framework revision 12fccda598 (4 weeks ago), 2023-09-19 13:56:11 -0700                  
    • Engine revision bd986c5ed2                                                              
    • Dart version 3.1.2                                                                      
    • DevTools version 2.25.0                                                                 
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn


[√] Connected device (4 available)
    • WLZ AL10 (mobile) • FMLDU19C13016286 • android-arm64  • Android 12 (API 31)

@liangxianshen
Copy link

I also think it needs to be optimized.

@chenshandong
Copy link

我也遇到同样的问题

@zmtzawqlp
Copy link
Member

if (_velocityTrackers.keys.length == 1) {

可以自定义下这里的规则,这就是手势冲突问题,这个就要看个人的习惯了。。比如有2以上触摸点的时候,就让水平垂直的手势不获胜。

@QixianWu
Copy link

QixianWu commented Oct 31, 2023

优化后,体验有所提升
if(_velocityTrackers.keys.length >=2){
return false;
}

@zmtzawqlp
Copy link
Member

怎么说呢,这个算是个人的感知吧,这地方就是为了更进一步区分是垂直水平拖动还是 双指多指缩放的

@dev-juyoung
Copy link

if (_velocityTrackers.keys.length == 1) {

可以自定义下这里的规则,这就是手势冲突问题,这个就要看个人的习惯了。。比如有2以上触摸点的时候,就让水平垂直的手势不获胜。

Is there any way to control this externally?
can modify the library code after receiving the pull, but I would like to avoid that method as much as possible.

@zmtzawqlp
Copy link
Member

if (_velocityTrackers.keys.length == 1) {

可以自定义下这里的规则,这就是手势冲突问题,这个就要看个人的习惯了。。比如有2以上触摸点的时候,就让水平垂直的手势不获胜。

Is there any way to control this externally? can modify the library code after receiving the pull, but I would like to avoid that method as much as possible.

we can't public it , it has much private properties, so you can fork this package, and custom your logic

@dev-juyoung
Copy link

if (_velocityTrackers.keys.length == 1) {

可以自定义下这里的规则,这就是手势冲突问题,这个就要看个人的习惯了。。比如有2以上触摸点的时候,就让水平垂直的手势不获胜。

Is there any way to control this externally? can modify the library code after receiving the pull, but I would like to avoid that method as much as possible.

we can't public it , it has much private properties, so you can fork this package, and custom your logic

Thanks for the reply.
If you can't make it public, it seems like gesture recognition for pinch zoom and page switching needs to be improved.

@carrot2018
Copy link

我也遇到了,缩放非常不流畅,缩放手势会跟滑动手势冲突,应该修改下手势竞争规则

@chinghoi
Copy link

缩放经常不成功, 缩放的时候会走左右滑动的手势

@lakatosdavid
Copy link

yes this should be fixed! please very annoying

@chenjiangmin
Copy link

@zmtzawqlp 请问下这个可以优化么 确实有些奇怪

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

10 participants