File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,6 @@ export default function onTouchMove(event) {
57
57
}
58
58
return ;
59
59
}
60
-
61
60
if ( params . touchReleaseOnEdges && ! params . loop ) {
62
61
if ( swiper . isVertical ( ) ) {
63
62
// Vertical
@@ -70,8 +69,15 @@ export default function onTouchMove(event) {
70
69
return ;
71
70
}
72
71
} else if (
73
- ( pageX < touches . startX && swiper . translate <= swiper . maxTranslate ( ) ) ||
74
- ( pageX > touches . startX && swiper . translate >= swiper . minTranslate ( ) )
72
+ rtl &&
73
+ ( ( pageX > touches . startX && - swiper . translate <= swiper . maxTranslate ( ) ) ||
74
+ ( pageX < touches . startX && - swiper . translate >= swiper . minTranslate ( ) ) )
75
+ ) {
76
+ return ;
77
+ } else if (
78
+ ! rtl &&
79
+ ( ( pageX < touches . startX && swiper . translate <= swiper . maxTranslate ( ) ) ||
80
+ ( pageX > touches . startX && swiper . translate >= swiper . minTranslate ( ) ) )
75
81
) {
76
82
return ;
77
83
}
You can’t perform that action at this time.
0 commit comments