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

mdTabs: md-swipe-content doesn't work with 0.10.0-rc2 #3225

Closed
fungiboletus opened this issue Jun 11, 2015 · 11 comments
Closed

mdTabs: md-swipe-content doesn't work with 0.10.0-rc2 #3225

fungiboletus opened this issue Jun 11, 2015 · 11 comments
Assignees
Milestone

Comments

@fungiboletus
Copy link

I saw the new parameter md-swipe-content, but I can't get it working using the version 0.10.0-rc2.

Version CodePen Works
0.10.0-rc2 http://codepen.io/anon/pen/QbgObY
0.9.8 http://codepen.io/anon/pen/MwoOwN
@fungiboletus fungiboletus changed the title mdTabs: swipe doesn't work since 0.9.8 mdTabs: md-swipe-content doesn't work with 0.10.0-rc2 Jun 11, 2015
@NetvisionBenjamin
Copy link

Same here

@eXaminator
Copy link

Seems to be still broken in 0.10.0.

@patriziotufarolo
Copy link

same here...

@ThomasBurleson ThomasBurleson modified the milestone: Backlog Jul 6, 2015
@grosscorporation
Copy link

same here, doesn't work

@ghost
Copy link

ghost commented Jul 15, 2015

Same here with version 0.10.0.

@vniche
Copy link

vniche commented Jul 15, 2015

+1
Mobile interfaces are very dependent of this feature.

@ThomasBurleson ThomasBurleson modified the milestones: 0.11.0, Backlog Jul 15, 2015
@grosscorporation
Copy link

I am working on a solution guys, give me a day. #FingersCrossed

@grosscorporation
Copy link

OKAY! I solved this by editing the core. I removed the tags to swipe md content for left and right.
sad part, is I had to edit the core, secondly, had to switch it off for all future tabs from swiping, and lastly have to remember this when I update

@vniche
Copy link

vniche commented Jul 25, 2015

lol, that's all you had to change to get it working? my hack was to force a click event on the next/previous tab with $timeout hahahaha shame on me

@giriprashaad
Copy link

my 2 cents in here, since its broken in the 0.10.0 version, i thought i'll comment in my workaround for others who are looking for a temporary fix.

I attached md-swipe-left="onSwipeLeft()" to the inside a tab and md-selected="selectedIndex" for the .

Added the following to work the swipes.
$scope.selectedIndex = 0;
$scope.onSwipeLeft = function(){
if($scope.selectedIndex < 2) {
$scope.selectedIndex = $scope.selectedIndex + 1;
}
}

Seems to working fine for me.

@bhandaribhumin
Copy link

this is work good but when i click on tab then swipe not working

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

9 participants