From cef1b740ee0a72488a9a9c4f197e2398d4027f1e Mon Sep 17 00:00:00 2001 From: Elizabeth Mitchell Date: Mon, 8 Jan 2024 12:17:13 -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: 596668539 --- ripple/internal/ripple.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/ripple/internal/ripple.ts b/ripple/internal/ripple.ts index a772d9780..6a0ed6289 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;