Cancel a pending drag timer before setting a new one

This commit is contained in:
Cameron Gutman 2021-03-20 11:04:34 -05:00
parent cc183c0da8
commit 45436c006f

View File

@ -147,6 +147,9 @@ public class RelativeTouchContext implements TouchContext {
}
private synchronized void startDragTimer() {
// Cancel any existing drag timers
cancelDragTimer();
dragTimer = new Timer(true);
dragTimer.schedule(new TimerTask() {
@Override