Controls fixes

This commit is contained in:
Arkadiusz Fal
2022-03-27 21:24:32 +02:00
parent fa91367b3d
commit cf3fa3871b
4 changed files with 59 additions and 8 deletions

View File

@@ -14,6 +14,9 @@ struct PlayerGestures: View {
},
doubleTapAction: {
player.backend.seek(relative: .secondsInDefaultTimescale(-10))
},
anyTapAction: {
model.update()
}
)
@@ -25,6 +28,9 @@ struct PlayerGestures: View {
},
doubleTapAction: {
player.backend.togglePlay()
},
anyTapAction: {
model.update()
}
)
@@ -36,6 +42,9 @@ struct PlayerGestures: View {
},
doubleTapAction: {
player.backend.seek(relative: .secondsInDefaultTimescale(10))
},
anyTapAction: {
model.update()
}
)
}