From 563af5eccaf0d434c88b12c8bf5c0937f2119b2d Mon Sep 17 00:00:00 2001 From: Bnyro Date: Fri, 17 Nov 2023 14:53:17 +0100 Subject: [PATCH] fix: increase area that can be used to control the time bar --- .../com/github/libretube/ui/views/CustomExoPlayerView.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/com/github/libretube/ui/views/CustomExoPlayerView.kt b/app/src/main/java/com/github/libretube/ui/views/CustomExoPlayerView.kt index e0d86bc71..195e5f3c0 100644 --- a/app/src/main/java/com/github/libretube/ui/views/CustomExoPlayerView.kt +++ b/app/src/main/java/com/github/libretube/ui/views/CustomExoPlayerView.kt @@ -204,6 +204,11 @@ open class CustomExoPlayerView( if (isLive) player?.let { it.seekTo(it.duration) } } + // forward touch events to the time bar for better accessibility + binding.bottomBar.setOnTouchListener { _, motionEvent -> + binding.exoProgress.onTouchEvent(motionEvent) + } + updateCurrentPosition() }