Skip to content

Commit

Permalink
feat: more sensibility for swipe on thumbnail
Browse files Browse the repository at this point in the history
  • Loading branch information
Malopieds committed Aug 19, 2024
1 parent f7f1606 commit b4bb67d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ fun Thumbnail(
}
},
onDragEnd = {
if (offsetX > 400) {
if (offsetX > 300) {
if (playerConnection.player.previousMediaItemIndex != -1) {
playerConnection.player.seekToPreviousMediaItem()
}
} else if (offsetX < -400) {
} else if (offsetX < -300) {
if (playerConnection.player.nextMediaItemIndex != -1) {
playerConnection.player.seekToNext()
}
Expand Down

0 comments on commit b4bb67d

Please sign in to comment.