Disable double click on SVG button

Hi, I have a simple UI that uses SVG to draw several buttons. I use the Svg.Events.onClick to capture the clicks and send out messages. If the user rapidly clicks on a button (say an up arrow button), the browser interprets this as a double click, and starts highlighting text. Is there any way to prevent this “double click” behavior when the user is clicking on a SVG object?

Thanks!

you could try disabling the selection with CSS using user-select: none;

2 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.