Skip to content
This repository was archived by the owner on Feb 24, 2023. It is now read-only.

Commit 1f283dc

Browse files
author
徐玉金
committed
fix touchmove slide index
1 parent 54ba56f commit 1f283dc

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/Agile.vue

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,11 @@
553553
return
554554
}
555555
556-
this.prevSlide()
556+
if (!this.isArabic) {
557+
this.prevSlide()
558+
} else {
559+
this.nextSlide()
560+
}
557561
this.handleMouseUp()
558562
}
559563
@@ -562,7 +566,11 @@
562566
return
563567
}
564568
565-
this.nextSlide()
569+
if (!this.isArabic) {
570+
this.nextSlide()
571+
} else {
572+
this.prevSlide()
573+
}
566574
this.handleMouseUp()
567575
}
568576
}

0 commit comments

Comments
 (0)