Closed AgentSmith0 closed 1 year ago
See the button
property of the PointerEvent
or MouseEvent
.
myButton.addEventListener("pointerdown", event => {
if (event.button === 0) { // left click or touch
ripplet(event);
}
});
Thank you!
Hi, is there a way to disable the ripple effect for right click events, to only allow left click and touch input? Thank you!