Commit 6aa70977 authored by Kainalu Hagiwara's avatar Kainalu Hagiwara Committed by Jeff Boek
Browse files

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

parent af020d0a
...@@ -180,14 +180,14 @@ class ToolbarGestureHandler( ...@@ -180,14 +180,14 @@ class ToolbarGestureHandler(
val sessions = sessionManager.sessionsOfType(currentSession.private) val sessions = sessionManager.sessionsOfType(currentSession.private)
val index = when (gestureDirection) { val index = when (gestureDirection) {
GestureDirection.RIGHT_TO_LEFT -> if (isLtr) { GestureDirection.RIGHT_TO_LEFT -> if (isLtr) {
currentIndex + 1
} else {
currentIndex - 1 currentIndex - 1
} else {
currentIndex + 1
} }
GestureDirection.LEFT_TO_RIGHT -> if (isLtr) { GestureDirection.LEFT_TO_RIGHT -> if (isLtr) {
currentIndex - 1
} else {
currentIndex + 1 currentIndex + 1
} else {
currentIndex - 1
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment