From 44f013127aae291ece894e57ea1ff9e4147bd17a Mon Sep 17 00:00:00 2001 From: Elizabeth Mitchell Date: Fri, 5 Jan 2024 11:46:55 -0800 Subject: [PATCH] fix(ripple): multiple touches causing ripples to start from center 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 --- ripple/internal/ripple.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/ripple/internal/ripple.ts b/ripple/internal/ripple.ts index a772d97808..6a0ed62899 100644 --- a/ripple/internal/ripple.ts +++ b/ripple/internal/ripple.ts @@ -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;