File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 45
45
// that the last item is moved to the begining.
46
46
scope . items . unshift ( scope . items . pop ( ) ) ;
47
47
48
+ // Ensures continuity during navigation
49
+ // when there's only one invisible item
50
+ scope . items = scope . items . concat ( angular . copy ( scope . items ) ) ;
51
+
48
52
$interval . cancel ( interval ) ;
49
53
interval = $interval ( function ( ) {
50
54
if ( enabled && scope . items . length && scope . $eval ( attrs . interval ) ) {
Original file line number Diff line number Diff line change 45
45
// that the last item is moved to the begining.
46
46
scope . items . unshift ( scope . items . pop ( ) ) ;
47
47
48
+ // Ensures continuity during navigation
49
+ // when there's only one invisible item
50
+ scope . items = scope . items . concat ( angular . copy ( scope . items ) ) ;
51
+
48
52
$interval . cancel ( interval ) ;
49
53
interval = $interval ( function ( ) {
50
54
if ( enabled && scope . items . length && scope . $eval ( attrs . interval ) ) {
You can’t perform that action at this time.
0 commit comments