0

A View for freehand writing implements onTouchEvent for the drawing operations.

Besides, a GestureDetector recognises double tap events to wipe the drawing. However, when the double tap occurs, onTouchEvent triggers an ACTION_UP, which draws an unwanted point on the view.

In iOS I handled these kind of problems with the touchesCancelled method, is there something similar in Android?

twernt
  • 20,271
  • 5
  • 32
  • 41
vitil
  • 256
  • 1
  • 3
  • 13

1 Answers1

0

I solved by handling onDoubleTapEvent instead of onDoubleTap.

vitil
  • 256
  • 1
  • 3
  • 13