Unwanted selection after tripple click on span-element

57 views Asked by At

I have a span-element that has an onclick-property that calles a javascript function (it is a zoom-button).

Everything is working properly, but when quickly clicking two or three times in a row on the "button", some random other elements get selected (blue selection).

When I make the spans as "" or the style changes, so I don't want that.

What else can I do to avoid the selection effect?

(btw in google music the same problem appears, when clicking the next or previous-buttons (< or >) in the "recent activity"-section.)

0

There are 0 answers