Disable double click on SVG button


#1

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!


#2

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


closed #3

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