From 98ef3ac493e292b2381c081e5ad483f6450ae0c7 Mon Sep 17 00:00:00 2001 From: klaviartur <_github@fambit.de> Date: Sat, 8 Feb 2025 18:56:20 +0100 Subject: [PATCH] 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 --- .../newpipe/player/gesture/MainPlayerGestureListener.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/player/gesture/MainPlayerGestureListener.kt b/app/src/main/java/org/schabi/newpipe/player/gesture/MainPlayerGestureListener.kt index e33b393ad..f96713633 100644 --- a/app/src/main/java/org/schabi/newpipe/player/gesture/MainPlayerGestureListener.kt +++ b/app/src/main/java/org/schabi/newpipe/player/gesture/MainPlayerGestureListener.kt @@ -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 } }