Add touch cancel processing
This commit is contained in:
parent
ef30de5ecd
commit
c5b82a136c
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