britzl / defold-input

Simplify input related operations such as gesture detection, input mapping and clicking/dragging game objects
MIT License
111 stars 26 forks source link

Pinch gesture isn't cancelled if interrupted by locking the screen #23

Closed dri-richard closed 1 year ago

dri-richard commented 2 years ago

This is a very unusual edge case, I only found it when trying to reproduce a different bug.

Steps to reproduce:

  1. Run Defold-Input 4.1.4 example on Android
  2. Select Gesture example
  3. Initiate a two-finger pinch gesture
  4. Lock the screen with the physical button on the device
  5. Release both fingers
  6. Resume the sample
  7. Press a single finger on the screen
  8. Observe the pinch ratio displayed

Expected result: No two finger gesture is detected