mirror of
https://github.com/MaintainTeam/LastPipeBender.git
synced 2025-03-01 05:48:22 +03:00
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:
parent
f67f5f71ff
commit
98ef3ac493
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue