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:
parent
48db5eb528
commit
347b5d527c
@ -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…
Reference in New Issue
Block a user