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] single finger swipe triggering PhotoViewScaleState.zoomedOut #227

Closed
blaneyneil opened this issue Dec 10, 2019 · 1 comment
Closed
Labels
bug Something isn't working P1
Projects

Comments

@blaneyneil
Copy link

after setting up a scaleState listener, via the standard method:

_scaleStateController = PhotoViewScaleStateController()..outputScaleStateStream.listen(_photoStateListener);

PhotoView(
      scaleStateController: _scaleStateController,
),

a single finger swipe (as in a gesture someone would make if they were trying to swipe to another card) in any direction and or any distance is triggering this from the listener:

flutter: val = PhotoViewScaleState.zoomedOut
flutter: val = PhotoViewScaleState.initial

which means that if you're acting on a zoom (eg, hiding/showing a menu, changing bg color, etc) all of those actions will toggle upon the false zoom. resulting in blinks, flashes, etc.

this is for iOS using photo_view: "^0.9.0"

@blaneyneil blaneyneil added the bug Something isn't working label Dec 10, 2019
@renancaraujo renancaraujo added this to Todo in Bug solving via automation Feb 26, 2020
@renancaraujo renancaraujo moved this from Todo to In progress in Bug solving Mar 14, 2020
@renancaraujo renancaraujo moved this from In progress to Done in Bug solving Mar 14, 2020
@renancaraujo
Copy link
Member

Fixed on #267

Thanks for pointing it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P1
Projects
Bug solving
  
Done
Development

No branches or pull requests

2 participants