Add touch cancel processing

This commit is contained in:
Alexander Sytnyk 2017-07-28 11:39:07 +03:00
parent 451ebba12e
commit 511401047f

View file

@ -156,7 +156,7 @@ public class RulerControlLayer extends OsmandMapLayer {
if (d > acceptableTouchRadius) {
touchOutside = true;
}
} else if (event.getAction() == MotionEvent.ACTION_UP) {
} else if (event.getAction() == MotionEvent.ACTION_UP || event.getAction() == MotionEvent.ACTION_CANCEL) {
touched = false;
touchEndTime = System.currentTimeMillis();
refreshMapDelayed();