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

Commit 956056bb authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Ensuring vibration scale is at most 1 in magnetic pull haptics." into main

parents 44da68ab fceaa89c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -265,7 +265,8 @@ constructor(
                STRONG_VIBRATION_SCALE
            }
        val vibrationScale = scaleFactor * normalizedTranslation.pow(VIBRATION_SCALE_EXPONENT)
        val compensatedScale = vibrationScale.pow(VIBRATION_PERCEPTION_EXPONENT)
        val compensatedScale =
            vibrationScale.pow(VIBRATION_PERCEPTION_EXPONENT).coerceAtMost(maximumValue = 1f)
        if (Flags.msdlFeedback()) {
            msdlPlayer.playToken(
                MSDLToken.DRAG_INDICATOR_CONTINUOUS,