Skip to content

Commit cef1b74

Browse files
asynclizcopybara-github
authored andcommitted
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
1 parent ad52075 commit cef1b74

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ripple/internal/ripple.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,7 @@ export class Ripple extends LitElement implements Attachable {
374374
}
375375

376376
private async endPressAnimation() {
377+
this.rippleStartEvent = undefined;
377378
this.state = State.INACTIVE;
378379
const animation = this.growAnimation;
379380
let pressAnimationPlayState = Infinity;

0 commit comments

Comments
 (0)