Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

mdTabs: disable swipe to navigate #2331

Closed
dmackerman opened this issue Apr 15, 2015 · 10 comments
Closed

mdTabs: disable swipe to navigate #2331

dmackerman opened this issue Apr 15, 2015 · 10 comments
Assignees
Milestone

Comments

@dmackerman
Copy link

By default it seems like this is enabled, even on desktop browsers where the interaction doesn't make a whole lot of sense. Would be nice if this was more of an opt-in situation, as there are issues with the desktop implementation right now.

@epelc
Copy link
Contributor

epelc commented Apr 17, 2015

Please be aware a lot of desktops/laptops have touch screens now. Perhaps the mouse shouldn't trigger it though.

@ThomasBurleson
Copy link
Contributor

@dmackerman - since some components have a md-no-ink directive, I think it makes sense to have a n opt-out using the md-no-swipe directive.

@ThomasBurleson ThomasBurleson added this to the 0.10.0 milestone Apr 17, 2015
@dmackerman
Copy link
Author

@ThomasBurleson: makes total sense. I'd be down with either solution. 👍
@epelc: yeah, that's what I mean. Desktop really just means "mouse" in my scenario. 😄

@AllTerrainDeveloper
Copy link

I am facing the same problems, sometimes I only want to select text from a textbox and it swipes to the next tab... Would be nice to have a new directive "md-no-swipe"

@cleever
Copy link

cleever commented May 20, 2015

Indeed this feature is very annoying on desktop. Maybe a "md-swipe" with a bool parameter is better.

@felipemeirelles
Copy link

Is there any workaround at this time? My app uses a map inside a md-tabs, you can imagine the problem 😛

@epelc
Copy link
Contributor

epelc commented May 28, 2015

@felipemeirelles Render the map outside of the tabs template. You have to manage the active tab and add some logic to activate it depending on the state on reload though.

Side note what are you using for maps? I had to roll my own google maps.

@felipemeirelles
Copy link

I use google maps for a long time, since the start of the v2 api, I think its arround 5 years now. But the google maps is just the bigger problem, if I try to select some text on text inputs its also triggers the swipe event.

@kiley0
Copy link

kiley0 commented Jun 3, 2015

We're building a Tinder-like experience in which users swipe an <md-card> left to dismiss, right to save. But we're doing this inside an <md-tab>, so the swipe is (not surprisingly) causing the tabs to switch. Would be awesome to have a built-in md-no-swipe just like the existing md-no-bar and md-no-pagination, any updates? Thanks!

@kiley0
Copy link

kiley0 commented Jun 4, 2015

thanks!!

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

8 participants