2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-19 09:25:34 +00:00

[fenix] For https://github.com/mozilla-mobile/fenix/issues/12861 - Swap order of tabs for tab switching gesture.

This commit is contained in:
Kainalu Hagiwara 2020-07-28 13:06:32 -07:00 committed by Jeff Boek
parent 48db5eb528
commit 347b5d527c

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