Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Commit

Permalink
Made it harder to accidentally remove songs via swiping right
Browse files Browse the repository at this point in the history
  • Loading branch information
Sublimeful committed Aug 24, 2023
1 parent a57ec2e commit a23a23b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ fun Queue(
}),
onDragStopped = { velocity ->
if (offsetX == 0f) return@draggable
if (velocity / offsetX >= 1.0f) {
if (velocity >= 3000.0f) {
binder.player.removeMediaItem(window.firstPeriodIndex)
} else {
offsetX = 0f
Expand Down

0 comments on commit a23a23b

Please sign in to comment.