Searched refs:newCardIndex (Results 1 – 2 of 2) sorted by relevance
217 var newCardIndex = this.currentCard + pagesToScroll;218 newCardIndex = Math.min(this.cards_.length,219 Math.max(0, newCardIndex));220 this.selectCard(newCardIndex, true);305 var newCardIndex = Math.round(-newX / this.cardWidth_);307 if (newCardIndex == this.currentCard && Math.abs(velocity) >312 newCardIndex += velocity > 0 ? -1 : 1;315 this.selectCard(newCardIndex, /* animate */ true);336 selectCard: function(newCardIndex, opt_animate) { argument337 var isChangingCard = newCardIndex >= 0 &&[all …]
261 var newCardIndex = Math.round(-newX / this.cardWidth_);263 if (newCardIndex == this.currentCard && Math.abs(velocity) >268 newCardIndex += velocity > 0 ? -1 : 1;271 this.selectCard(newCardIndex, /* animate */ true);292 selectCard: function(newCardIndex, opt_animate) { argument293 var isChangingCard = newCardIndex >= 0 &&294 newCardIndex < this.cards_.length &&295 newCardIndex != this.currentCard;299 this.currentCard_ = newCardIndex;