mirror of
https://github.com/material-components/material-web.git
synced 2024-08-17 17:40:40 +03:00
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:
parent
ad52075135
commit
cef1b740ee
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user