From 535d8897758aa72bbff41ee5f7c552bec2b4042f Mon Sep 17 00:00:00 2001 From: Material Web Team Date: Wed, 22 Feb 2023 09:57:53 -0800 Subject: [PATCH] fix(slider)!: fix ripple end hover state when leaving handle PiperOrigin-RevId: 511523980 --- slider/lib/slider.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/slider/lib/slider.ts b/slider/lib/slider.ts index c822a70a2c..d6e9bab7a2 100644 --- a/slider/lib/slider.ts +++ b/slider/lib/slider.ts @@ -487,10 +487,10 @@ export class Slider extends LitElement { // TODO(b/269799771): improve slider ripple connection if (hovering) { rippleEl.handlePointerenter( - new PointerEvent('pointerenter', {isPrimary: true})); + new PointerEvent('pointerenter', {isPrimary: true, pointerId: 1})); } else { rippleEl.handlePointerleave( - new PointerEvent('pointerleave', {isPrimary: true})); + new PointerEvent('pointerleave', {isPrimary: true, pointerId: 1})); } }