3 ms·
Is there a reliable way to detect touch screens and screen readers? This way, you can enable hover controls only if the user is not on a touch screen or a scre
by yoran 7y ago
Is there a reliable way to detect touch screens and screen readers?
This way, you can enable hover controls only if the user is not on a touch screen or a screen reader.
- joekrill 7y agoIt's not really a clear distinction, though. I have a laptop that has a touchscreen, but also a regular touchpad and sometimes I use an actual mouse with it. Sometimes I touch the screen if it's easier even if I have a mouse connected. I also sometimes remote into it. Then there's my tablet: I can use a bluetooth mouse with that if I want. Or an external touchpad.
- yoran 7y agoI imagine I'd err on the safe side. If the screen has touch functionality (includes laptops with touchscreen), then don't do actions on hover. Is there a way to reliably detect the existence of touch functionality through the browser?