mirror of
https://github.com/SimpleMobileTools/Simple-Draw.git
synced 2025-06-05 21:59:17 +02:00
invalidate the canvas after every touch event
This commit is contained in:
@ -66,20 +66,19 @@ public class MyCanvas extends View {
|
|||||||
startX = x;
|
startX = x;
|
||||||
startY = y;
|
startY = y;
|
||||||
actionDown(x, y);
|
actionDown(x, y);
|
||||||
invalidate();
|
|
||||||
break;
|
break;
|
||||||
case MotionEvent.ACTION_MOVE:
|
case MotionEvent.ACTION_MOVE:
|
||||||
actionMove(x, y);
|
actionMove(x, y);
|
||||||
invalidate();
|
|
||||||
break;
|
break;
|
||||||
case MotionEvent.ACTION_UP:
|
case MotionEvent.ACTION_UP:
|
||||||
actionUp();
|
actionUp();
|
||||||
invalidate();
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
invalidate();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user