fix: update swipe-back thresholds for improved responsiveness

This commit is contained in:
k1ngsterr1
2026-02-06 22:20:03 +05:00
parent d03f76391c
commit 76ad853f79

View File

@@ -23,9 +23,9 @@ import kotlinx.coroutines.launch
// Telegram's CubicBezierInterpolator(0.25, 0.1, 0.25, 1.0) // Telegram's CubicBezierInterpolator(0.25, 0.1, 0.25, 1.0)
private val TelegramEasing = CubicBezierEasing(0.25f, 0.1f, 0.25f, 1.0f) private val TelegramEasing = CubicBezierEasing(0.25f, 0.1f, 0.25f, 1.0f)
// Constants matching Telegram // Swipe-back thresholds
private const val COMPLETION_THRESHOLD = 0.5f // 50% of screen width private const val COMPLETION_THRESHOLD = 0.3f // 30% of screen width (was 50%)
private const val FLING_VELOCITY_THRESHOLD = 600f // px/s private const val FLING_VELOCITY_THRESHOLD = 400f // px/s (was 600)
private const val ANIMATION_DURATION_ENTER = 300 private const val ANIMATION_DURATION_ENTER = 300
private const val ANIMATION_DURATION_EXIT = 250 private const val ANIMATION_DURATION_EXIT = 250
private const val EDGE_ZONE_DP = 200 private const val EDGE_ZONE_DP = 200