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

releases/v80.0.0
Kainalu Hagiwara 4 years ago committed by Jeff Boek
parent af020d0af1
commit 6aa70977e7

@ -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
}
}

Loading…
Cancel
Save