DEV Community

Discussion on: Lots of fun with "hover" css selectors on mobile devices

Collapse
 
mt3o profile image
mt3o

I guess you should play with pointer-events on this. Also, there used to be a trick with onfocus="blur()" but i think it would affect keyboard navigation.

Collapse
 
mario profile image
mario menti • Edited

Re. onfocus, I tried to keep it simple by sticking to CSS only, with no Javascript - but will definitely look at pointer-events, I hadn't come across those before. Thanks!