fix: update swipe-back thresholds for improved responsiveness
This commit is contained in:
@@ -23,9 +23,9 @@ import kotlinx.coroutines.launch
|
||||
// Telegram's CubicBezierInterpolator(0.25, 0.1, 0.25, 1.0)
|
||||
private val TelegramEasing = CubicBezierEasing(0.25f, 0.1f, 0.25f, 1.0f)
|
||||
|
||||
// Constants matching Telegram
|
||||
private const val COMPLETION_THRESHOLD = 0.5f // 50% of screen width
|
||||
private const val FLING_VELOCITY_THRESHOLD = 600f // px/s
|
||||
// Swipe-back thresholds
|
||||
private const val COMPLETION_THRESHOLD = 0.3f // 30% of screen width (was 50%)
|
||||
private const val FLING_VELOCITY_THRESHOLD = 400f // px/s (was 600)
|
||||
private const val ANIMATION_DURATION_ENTER = 300
|
||||
private const val ANIMATION_DURATION_EXIT = 250
|
||||
private const val EDGE_ZONE_DP = 200
|
||||
|
||||
Reference in New Issue
Block a user