Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Reset the touch when the action is cancelled (#3002)
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo authored Mar 19, 2020
1 parent a79c84d commit 634b737
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ public static void dispatch(Widget aWidget, int aDevice, boolean aFocused, boole
if (!aPressed && (device.mPreviousWidget != null) && (device.mPreviousWidget != aWidget)) {
if (device.mWasPressed) {
generateEvent(device.mPreviousWidget, device, aFocused, MotionEvent.ACTION_CANCEL, false);
device.mTouchStartWidget = null;
device.mWasPressed = false;
}
generateEvent(device.mPreviousWidget, device, aFocused, MotionEvent.ACTION_HOVER_EXIT, true, device.mMouseOutCoords);
Expand Down

0 comments on commit 634b737

Please sign in to comment.