minimal ratio change between left, middle and right portion of screen from 33:33:33 to 30:40:30, to allow for easier one-handed reaching of middle portion using the thumb

This commit is contained in:
klaviartur 2025-02-08 18:56:20 +01:00
parent f67f5f71ff
commit 98ef3ac493

View file

@ -275,8 +275,8 @@ class MainPlayerGestureListener(
override fun getDisplayPortion(e: MotionEvent): DisplayPortion {
return when {
e.x < binding.root.width / 3.0 -> DisplayPortion.LEFT
e.x > binding.root.width * 2.0 / 3.0 -> DisplayPortion.RIGHT
e.x < binding.root.width * 0.3 -> DisplayPortion.LEFT
e.x > binding.root.width * 0.7 -> DisplayPortion.RIGHT
else -> DisplayPortion.MIDDLE
}
}