We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f02747d commit b7d1fdeCopy full SHA for b7d1fde
nativescript-slides.ts
@@ -152,7 +152,11 @@ export class SlideContainer extends AbsoluteLayout {
152
private carousel(isenabled: boolean, time: number) {
153
if (isenabled) {
154
this.timer_reference = setInterval(() => {
155
- this.nextSlide();
+ if(typeof this.currentPanel.right !== "undefined") {
156
+ this.nextSlide();
157
+ }else {
158
+ clearTimeout(this.timer_reference);
159
+ }
160
}, time);
161
} else {
162
clearTimeout(this.timer_reference);
0 commit comments