Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 089b645b authored by Juan Sebastian Martinez's avatar Juan Sebastian Martinez Committed by Android (Google) Code Review
Browse files

Merge "Adjustment to magnetic pull parameters." into main

parents f659d841 1203f661
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -291,7 +291,7 @@ constructor(
         * currently being swiped. From the center outwards, the multipliers apply to the neighbors
         * currently being swiped. From the center outwards, the multipliers apply to the neighbors
         * of the swiped view.
         * of the swiped view.
         */
         */
        private val MAGNETIC_TRANSLATION_MULTIPLIERS = listOf(0.18f, 0.28f, 0.5f, 0.28f, 0.18f)
        private val MAGNETIC_TRANSLATION_MULTIPLIERS = listOf(0.04f, 0.12f, 0.5f, 0.12f, 0.04f)


        const val MAGNETIC_REDUCTION = 0.65f
        const val MAGNETIC_REDUCTION = 0.65f


@@ -299,7 +299,7 @@ constructor(
        private const val DETACH_STIFFNESS = 800f
        private const val DETACH_STIFFNESS = 800f
        private const val DETACH_DAMPING_RATIO = 0.95f
        private const val DETACH_DAMPING_RATIO = 0.95f
        private const val SNAP_BACK_STIFFNESS = 550f
        private const val SNAP_BACK_STIFFNESS = 550f
        private const val SNAP_BACK_DAMPING_RATIO = 0.52f
        private const val SNAP_BACK_DAMPING_RATIO = 0.6f


        // Maximum value of corner roundness that gets applied during the pre-detach dragging
        // Maximum value of corner roundness that gets applied during the pre-detach dragging
        private const val MAX_PRE_DETACH_ROUNDNESS = 0.8f
        private const val MAX_PRE_DETACH_ROUNDNESS = 0.8f