-
Notifications
You must be signed in to change notification settings - Fork 3.4k
mdTabs: disable swipe to navigate #2331
Comments
Please be aware a lot of desktops/laptops have touch screens now. Perhaps the mouse shouldn't trigger it though. |
@dmackerman - since some components have a |
@ThomasBurleson: makes total sense. I'd be down with either solution. 👍 |
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" |
Indeed this feature is very annoying on desktop. Maybe a "md-swipe" with a bool parameter is better. |
Is there any workaround at this time? My app uses a map inside a md-tabs, you can imagine the problem 😛 |
@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. |
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. |
We're building a Tinder-like experience in which users swipe an |
thanks!! |
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.
The text was updated successfully, but these errors were encountered: