leaguevine / leaguevine-ultistats

MIT License
18 stars 4 forks source link

Focus highlight does not disappear on quick taps #89

Open cboulay opened 12 years ago

cboulay commented 12 years ago

Using Chrome for Android, tapping elements very rapidly sometimes causes the element to keep focus, and thus stay highlighted, even after the tap has been processed.

This doesn't happen in desktop browsers.

I will connect my phone to my computer for debugging, but I don't have time right now.

We might be able to override this using a CSS attribute such as: -webkit-tap-highlight-color: rgba(255, 255, 255, 0);

But the tap highlights are desirable, so long as they are not persistent.

cboulay commented 12 years ago

Ugh... this is impossible to debug because it resolves itself whenever I do ANYTHING to the dom element, including letting the screen turn off and turning it back on, selecting the element for inspection, scrolling, etc. I tried using the javascript functions .blur() and focusoff. I also tried to reproduce it in other browsers. It seems to only be a problem in Chrome for Android. I'll work on other things for now.