getElementFromSelector,
getTransitionDurationFromElement,
isVisible,
+ isRTL,
reflow,
triggerTransitionEnd,
typeCheckConfig
// swipe left
if (direction > 0) {
- this.prev()
+ if (isRTL) {
+ this.next()
+ } else {
+ this.prev()
+ }
}
// swipe right
if (direction < 0) {
- this.next()
+ if (isRTL) {
+ this.prev()
+ } else {
+ this.next()
+ }
}
}
if (event.key === ARROW_LEFT_KEY) {
event.preventDefault()
- this.prev()
+ if (isRTL) {
+ this.next()
+ } else {
+ this.prev()
+ }
} else if (event.key === ARROW_RIGHT_KEY) {
event.preventDefault()
- this.next()
+ if (isRTL) {
+ this.prev()
+ } else {
+ this.next()
+ }
}
}