-1

I am working on a feature in my app that does zoom-in and zoom-out. I have noticed that when I do zoom-in, then my app receives onScaleEnd() even though both my fingers are still on the screen. Because of this, my app behaves in an unexpected way. I have tested it on Nexus 5 Android emulator and Google pixel tablet. Note that when doing zoom-out, onScaleEnd() event is received as expected when I remove any one of the fingers from the screen.

Can anyone suggest why it is happening or is it a known android bug and how to workaround/fix it?

Ajit
  • 11

1 Answers1

0

According to android developers

onScaleEnd Responds to the end of a scale gesture. Reported by existing pointers going up. Once a scale has ended, getFocusX() and Responds to the end of a scale gesture. Reported by existing pointers going up. Once a scale has ended, getFocusX() and getFocusY() will return focal point of the pointers remaining on the screen. will return focal point of the pointers remaining on the screen.

vishal jangid
  • 2,967
  • 16
  • 22
  • I understand this but unfortunately it doesn't answer my question. In my case, when I am doing zoom-in and holding my finger on the screen for slightly longer time, then I am getting onScaleEnd() even though both fingers are on the screen. – Ajit Oct 11 '16 at 10:25