Skip to content

Commit

Permalink
[Slider] Release slider thumb if gesture has been cancelled
Browse files Browse the repository at this point in the history
Reoslves #2883
Resolves #2884

GIT_ORIGIN_REV_ID=e0a3ace3377b6e7ed4bc4e69470179ace3ab1d7f
PiperOrigin-RevId: 465631921
  • Loading branch information
pubiqq authored and drchen committed Aug 8, 2022
1 parent 8f149b1 commit f3a5f2f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1933,6 +1933,7 @@ public boolean onTouchEvent(@NonNull MotionEvent event) {
invalidate();
break;
case MotionEvent.ACTION_UP:
case MotionEvent.ACTION_CANCEL:
thumbIsPressed = false;
// We need to handle a tap if the last event was down at the same point.
if (lastEvent != null
Expand Down

0 comments on commit f3a5f2f

Please sign in to comment.