Fix double tap gestures

This commit is contained in:
Maxr1998
2023-08-25 13:15:00 +02:00
parent 90bdd91f52
commit 184180e584
@@ -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