Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Always use select if device is touch #11

Open
philwareham opened this issue Feb 16, 2012 · 3 comments
Open

Always use select if device is touch #11

philwareham opened this issue Feb 16, 2012 · 3 comments

Comments

@philwareham
Copy link

It would be great if the script could optionally auto-detect if the device is touch enabled (like the Modernizr .no-touch/.touch test) and always show for those devices - regardless of screen width. As well as the standard method of transforming to select at certain breakpoint.

Is that possible?

@mattkersley
Copy link
Owner

I guess it would be possible, but I'm not sure why you would do it when the breakpoint does the job anyway?
You would also run into issues with people wanting the full nav on a tablet (such as the iPad).

@philwareham
Copy link
Author

Main reason is that a lot of nav menus work on hover state, which won't work on touch devices regardless of screen width. That's why I suggested it as an option.

@mattkersley
Copy link
Owner

ahhh... valid point. I'll take a look and have a play :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants