Merge pull request #883 from Bnyro/master

improve the space for double tapping
This commit is contained in:
Bnyro 2022-07-27 09:05:25 +02:00 committed by GitHub
commit b56fdeb8a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1099,8 +1099,8 @@ class PlayerFragment : Fragment() {
override fun onEvent(x: Float) {
val width = exoPlayerView.width
when {
width * 0.45 > x -> rewind()
width * 0.55 < x -> forward()
width * 0.5 > x -> rewind()
width * 0.5 < x -> forward()
}
}
}