Display pagination based on touch support instead of checking screen width.
Better handling of pagination between full desktop(1280px) and mobile viewports. Currently, tab items are cut off if you are in a smaller desktop viewport that does not meet the mobile requirements.
This will prevent users from being unable to access tab items on middle-sized desktop viewports.
Potentially show pagination arrows if there is no touch support and disable them if there is touch support.
Users are left unable to access some tab items on a desktop if they are below 1280px and above a mobile viewport.
Pagination section of https://vuetifyjs.com/components/tabs
This approach for detecting touch/mouse https://medium.com/@david.gilbertson/the-only-way-to-detect-touch-with-javascript-7791a3346685
I'm only not sure what and when should be responsible for this detection
The PR wasn't done yet, reopening.
I dont understand why not always show the arrows if the tabs overflowing? If you are on mobile and have arrows you can see more easily that there are tabs which aren't visible at the moment. Sometimes I'm on my phone and I can't see that there is hidden content which I can scroll to, because there aren't any identicators...
@BennyAlex Blame google
Shouldn't improving on the material specs by google be something inside the scope of the project? Just cause google said it doesn't mean it should be the word of god imo. 馃槃
You could also argue the inverse, when people come to a Material project, they expect everything to match spec.
For the time being, it is much easier to match spec, while it technically does happen in some places of the framework, improving on it is a large effort reserved for after 1.0 release.
@johnleider
an attribute for v-tabs 'always-show-arrows' would be really nice
@KaelWD are you still for this change?
This isn't going to be possible due to how difficult it is to accurately detect touch support. The best way to resolve this is to redesign the tabs to match materials spec more accurately, and maybe allow tabs to be scrolled by dragging the mouse as well as touch.
Closed in favour of #2530