Skip to content

Commit aa05c40

Browse files
committed
Try to get onClick working on mobile
1 parent 9368462 commit aa05c40

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/webamp/js/components/WinampButton.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,14 @@ export default function WinampButton({
102102
onPointerEnter={
103103
requireClicksOriginateLocally ? undefined : onPointerEnter
104104
}
105+
onPointerUp={(e) => {
106+
if (originalOnClick != null) {
107+
originalOnClick(e);
108+
}
109+
if (htmlProps.onPointerUp != null) {
110+
htmlProps.onPointerUp(e);
111+
}
112+
}}
105113
onMouseUp={(e) => {
106114
if (originalOnClick != null) {
107115
originalOnClick(e);

0 commit comments

Comments
 (0)