mirror of
https://github.com/jellyfin/jellyfin-android.git
synced 2026-10-26 16:45:26 +00:00
Fix double tap gestures
This commit is contained in:
1 file changed
+4
-4
@@ -92,11 +92,11 @@ fun PlayerScreen(
|
||||
|
||||
val tapX = event.x.toInt()
|
||||
val (contentWidth, contentHeight) = contentSize
|
||||
val fastForwardZone = contentWidth / 3
|
||||
val rewindZone = contentWidth - fastForwardZone
|
||||
val rewindZone = contentWidth / 3
|
||||
val fastForwardZone = contentWidth - rewindZone
|
||||
|
||||
val isFastForward = tapX < fastForwardZone
|
||||
val isRewind = tapX > rewindZone
|
||||
val isFastForward = tapX > fastForwardZone
|
||||
val isRewind = tapX < rewindZone
|
||||
|
||||
if (!isFastForward && !isRewind) {
|
||||
return@detectTapGestures
|
||||
|
||||
Reference in new issue
Block a user