We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d04934d commit 1b1e00cCopy full SHA for 1b1e00c
1 file changed
app/src/main/java/org/schabi/newpipe/player/gesture/MainPlayerGestureListener.kt
@@ -209,9 +209,13 @@ class MainPlayerGestureListener(
209
(accumulatedSeek * SEEK_SWIPE_FACTOR).toLong()
210
} else {
211
val beyond = abs(accumulatedSeek) - thresholdPx
212
- (sign(accumulatedSeek) *
213
- (SEEK_SWIPE_FAST_THRESHOLD_MS +
214
- beyond * SEEK_SWIPE_FACTOR * SEEK_SWIPE_FAST_MULTIPLIER)).toLong()
+ (
+ sign(accumulatedSeek) *
215
+ SEEK_SWIPE_FAST_THRESHOLD_MS +
216
+ beyond * SEEK_SWIPE_FACTOR * SEEK_SWIPE_FAST_MULTIPLIER
217
+ )
218
+ ).toLong()
219
}
220
221
swipeSeekTargetPosition = (swipeSeekStartPosition + deltaMs).coerceIn(0L, duration)
0 commit comments