mirror of
https://github.com/jellyfin/jellyfin-android.git
synced 2026-09-02 21:04:10 +03:00
Fix double tap gestures
This commit is contained in:
@@ -92,11 +92,11 @@ fun PlayerScreen(
|
|||||||
|
|
||||||
val tapX = event.x.toInt()
|
val tapX = event.x.toInt()
|
||||||
val (contentWidth, contentHeight) = contentSize
|
val (contentWidth, contentHeight) = contentSize
|
||||||
val fastForwardZone = contentWidth / 3
|
val rewindZone = contentWidth / 3
|
||||||
val rewindZone = contentWidth - fastForwardZone
|
val fastForwardZone = contentWidth - rewindZone
|
||||||
|
|
||||||
val isFastForward = tapX < fastForwardZone
|
val isFastForward = tapX > fastForwardZone
|
||||||
val isRewind = tapX > rewindZone
|
val isRewind = tapX < rewindZone
|
||||||
|
|
||||||
if (!isFastForward && !isRewind) {
|
if (!isFastForward && !isRewind) {
|
||||||
return@detectTapGestures
|
return@detectTapGestures
|
||||||
|
|||||||
Reference in New Issue
Block a user