mirror of
https://github.com/bbara04/Purefin.git
synced 2026-03-31 17:10:08 +02:00
refactor: move HorizontalSeekGestureHelper to helper package
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
package hu.bbara.purefin.player.ui.components
|
||||
package hu.bbara.purefin.player.helper
|
||||
|
||||
import androidx.compose.ui.unit.dp
|
||||
import kotlin.math.abs
|
||||
@@ -18,4 +18,4 @@ internal object HorizontalSeekGestureHelper {
|
||||
val signed = if (rawDelta > 0f) scaled else -scaled
|
||||
return signed.toLong().coerceIn(-MAX_DELTA_MS, MAX_DELTA_MS)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -9,6 +9,7 @@ import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.input.pointer.pointerInput
|
||||
import androidx.compose.ui.platform.LocalDensity
|
||||
import hu.bbara.purefin.player.helper.HorizontalSeekGestureHelper
|
||||
|
||||
@Composable
|
||||
fun PlayerGesturesLayer(
|
||||
|
||||
Reference in New Issue
Block a user