1
0
Fork 0

For #12861 - Swap order of tabs for tab switching gesture.

master
Kainalu Hagiwara 2020-07-28 13:06:32 -07:00 committed by Jeff Boek
parent af020d0af1
commit 6aa70977e7
1 changed files with 4 additions and 4 deletions

View File

@ -180,14 +180,14 @@ class ToolbarGestureHandler(
val sessions = sessionManager.sessionsOfType(currentSession.private)
val index = when (gestureDirection) {
GestureDirection.RIGHT_TO_LEFT -> if (isLtr) {
currentIndex + 1
} else {
currentIndex - 1
} else {
currentIndex + 1
}
GestureDirection.LEFT_TO_RIGHT -> if (isLtr) {
currentIndex - 1
} else {
currentIndex + 1
} else {
currentIndex - 1
}
}