justinmc / flutter-go

An example of using InteractiveViewer to build a go game board
https://justinmc.github.io/flutter-go/
70 stars 5 forks source link

Hard to scale when two fingers tap down at the same time #5

Closed AlexV525 closed 4 years ago

AlexV525 commented 4 years ago

What happened?

It's hard to scale the board when I use two fingers at the same time. But the board can be easily scaled with one finger pressed and move for a little bit then the second finger pressed to scale.

Environments

Flutter: 1.20.0 (Stable) Devices: OnePlus 6T, OnePlus 8 Pro, AVD Emulator. (All Android Q)

How to reproduce?

Failures are following steps below:

  1. Two fingers press at the same time.
  2. Try to scale the board.
  3. ~50% of the gesture is no response with scale.

Succeeds are following steps below, and have some specific cases:

①: Fingers pressed one-by-one (~100%):

  1. Only one finger pressed down at first.
  2. Move the finger for a little bit.
  3. At the same time of moving, press the second finger and start scaling.

②: Rapidly scaling on the screen (~65%):

  1. Press two fingers on the screen with a rapidly enlarge gesture.

③: Place two fingers as close as possible (~85%):

  1. Place two fingers which makes the distance of them is lower than the height of the piece panel.
  2. Scale it.

That might be something with the GestureDetector or the Listener inside the InteractiveViewer, needs more investigation.

AlexV525 commented 4 years ago

Continue with an issue in flutter's repo.