Skip to content

Commit e9fd702

Browse files
committed
feat(Player): enable fast-forward with double tap to seek
Enables fast-forward when double tap to seek, instead of swipe gestures, as it doesn't involve any swiping and can be used similar to double tap to seek, to navigate through a video.
1 parent 34f2f8e commit e9fd702

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/src/main/java/com/github/libretube/ui/views/CustomExoPlayerView.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,7 @@ abstract class CustomExoPlayerView(
883883
}
884884

885885
override fun onLongPress() {
886-
if (!PlayerHelper.swipeGestureEnabled) return
886+
if (!PlayerHelper.doubleTapToSeek) return
887887

888888
backgroundBinding.fastForwardView.isVisible = true
889889
val player = player ?: return
@@ -905,7 +905,7 @@ abstract class CustomExoPlayerView(
905905
}
906906

907907
override fun onLongPressEnd() {
908-
if (!PlayerHelper.swipeGestureEnabled) return
908+
if (!PlayerHelper.doubleTapToSeek) return
909909

910910
backgroundBinding.fastForwardView.isGone = true
911911

0 commit comments

Comments
 (0)