For #13172 - Tab swipe order follows text direction from oldest to newest (#16178)

upstream-sync
Mihai Adrian Carare 4 years ago committed by GitHub
parent 96fb9f4676
commit db58022fbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -156,14 +156,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