Skip to content

Commit 3f4e710

Browse files
committed
Clear button selection when pointer leaves
1 parent 3383b2f commit 3f4e710

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/webamp/js/components/WinampButton.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,7 @@ export default function WinampButton({
8989
};
9090

9191
const onPointerLeave = (e: React.PointerEvent<HTMLDivElement>) => {
92-
if (e.buttons === 1) {
93-
setActive(false);
94-
}
92+
setActive(false);
9593
};
9694

9795
return (

0 commit comments

Comments
 (0)