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
This commit is contained in:
Elizabeth Mitchell 2024-01-08 12:17:13 -08:00 committed by Copybara-Service
parent ad52075135
commit cef1b740ee

View File

@ -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;