Skip to content

Commit

Permalink
fix(ripple): multiple touches causing ripples to start from center
Browse files Browse the repository at this point in the history
Fix is pretty simple, we weren't clearing out the first pointerdown event, and subsequent ones were ignored since the `pointerId` changes with each touch.

Fixes #5349

PiperOrigin-RevId: 596047639
  • Loading branch information
asyncLiz authored and copybara-github committed Jan 5, 2024
1 parent ad52075 commit 44f0131
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ripple/internal/ripple.ts
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ export class Ripple extends LitElement implements Attachable {
}

private async endPressAnimation() {
this.rippleStartEvent = undefined;
this.state = State.INACTIVE;
const animation = this.growAnimation;
let pressAnimationPlayState = Infinity;
Expand Down

0 comments on commit 44f0131

Please sign in to comment.