This repository was archived by the owner on May 27, 2021. It is now read-only.
Zero threshold velocity for triggering onSwipeLeft() and onSwipeRight…#66
Open
baconmania wants to merge 1 commit intoionic-team:masterfrom
Open
Zero threshold velocity for triggering onSwipeLeft() and onSwipeRight…#66baconmania wants to merge 1 commit intoionic-team:masterfrom
baconmania wants to merge 1 commit intoionic-team:masterfrom
Conversation
|
As pointed out (albeit a bit tersely) in this comment on #65, replacing I suggest closing this pull request (and #65). I'm hoping to contributing to the A swipe will trigger both In the "cards" controller: var skipSlow = false;
$scope.cardTransition = function(dir, speed, index) {
console.log('BrowseCtrl .cardTransition', dir, speed, index, skipSlow);
if (speed === 'fast') {
skipSlow = true;
$scope.addCard();
} else if (!skipSlow) {
$scope.addCard();
} else {
skipSlow = false;
}
};Repeater directives (some omitted for clarity): <td-card ng-repeat="card in cards" on-swipe-left="cardTransition('left', 'fast', $index)" on-transition-left="cardTransition('left', 'slow', $index)" on-swipe-right="cardTransition('right', 'fast', $index)" on-transition-right="cardTransition('right', 'slow', $index)"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…(). Resolves #65.