Add touch cancel processing
This commit is contained in:
parent
451ebba12e
commit
511401047f
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue