Skip to content

Commit

Permalink
fix(slider)!: fix ripple end hover state when leaving handle
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 511523980
  • Loading branch information
material-web-copybara authored and copybara-github committed Feb 22, 2023
1 parent 8b58f98 commit 535d889
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions slider/lib/slider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}));
}
}

Expand Down

0 comments on commit 535d889

Please sign in to comment.