Feat[input]: handle ACTION_CANCEL in GUI

This commit is contained in:
artdeell 2024-04-09 11:31:14 -04:00 committed by Maksim Belov
parent 0512ebb6b8
commit 8cf2b39eff

View File

@ -46,6 +46,7 @@ public class InGUIEventProcessor implements TouchEventProcessor {
} }
} else performScroll(); } else performScroll();
break; break;
case MotionEvent.ACTION_CANCEL:
case MotionEvent.ACTION_UP: case MotionEvent.ACTION_UP:
resetScrollOvershoot(); resetScrollOvershoot();
mTracker.cancelTracking(); mTracker.cancelTracking();