Skip to content

Commit

Permalink
Merge pull request #51 from 7schmiede/master
Browse files Browse the repository at this point in the history
close #49
  • Loading branch information
Luwangel committed Aug 9, 2018
2 parents 06f5b2f + 0d1a7e6 commit 60d8264
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/carousel-3d.controller.js
Expand Up @@ -166,6 +166,11 @@
}

if (carousel3d.autoRotationSpeed > 0) {

if (vm.autoRotation) {
$interval.cancel(vm.autoRotation);
}

vm.autoRotation = $interval(function() {
if (!vm.autoRotationLocked){
if (vm.options.dir === 'ltr') {
Expand Down

0 comments on commit 60d8264

Please sign in to comment.