Skip to content
This repository was archived by the owner on May 10, 2018. It is now read-only.

Commit ec8088d

Browse files
author
Christoph Schlumpf
committed
Fix sliding bug when doing multitouch sliding.
The best way to reproduce it is to slide whith one finger, and in the middle of the slide (and without stop touching) add another finger and slide up this way, the slides look mixed up.
1 parent f185bc3 commit ec8088d

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

dist/angular-carousel.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* Angular Carousel - Mobile friendly touch carousel for AngularJS
3-
* @version v1.0.0 - 2015-10-09
3+
* @version v1.0.1 - 2015-11-16
44
* @link http://revolunet.github.com/angular-carousel
55
* @author Julien Bouquillon <[email protected]>
66
* @license MIT License, http://www.opensource.org/licenses/MIT
@@ -374,9 +374,12 @@ angular.module('angular-carousel').run(['$templateCache', function($templateCach
374374
duration: options.transitionDuration,
375375
easing: options.transitionEasing,
376376
step: function(state) {
377-
updateSlidesPosition(state.x);
377+
if (isFinite(state.x)) {
378+
updateSlidesPosition(state.x);
379+
}
378380
},
379-
finish: function() {
381+
382+
finish: function() {
380383
scope.$apply(function() {
381384
scope.carouselIndex = index;
382385
offset = index * -100;

0 commit comments

Comments
 (0)