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

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

Merge "Making volume panel slider haptics continuous." into main

parents 43c453be b28ce481
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -196,9 +196,8 @@ fun VolumeSlider(
                            Haptics.Enabled(
                                hapticsViewModelFactory = it,
                                hapticConfigs =
                                    VolumeHapticsConfigsProvider.discreteConfigs(
                                        state.valueRange.stepSize(),
                                        state.hapticFilter,
                                    VolumeHapticsConfigsProvider.continuousConfigs(
                                        state.hapticFilter
                                    ),
                                orientation = Orientation.Horizontal,
                            )
+2 −2
Original line number Diff line number Diff line
@@ -38,8 +38,8 @@ object VolumeHapticsConfigsProvider {
            // Create a set of continuous configs
            hapticFeedbackConfig =
                SliderHapticFeedbackConfig(
                    additionalVelocityMaxBump = 0.1f,
                    deltaProgressForDragThreshold = 0.05f,
                    additionalVelocityMaxBump = 0.2f,
                    deltaProgressForDragThreshold = 0.01f,
                    numberOfLowTicks = 4,
                    maxVelocityToScale = 0.5f, /* slider progress(from 0 to 1) per sec */
                    filter = filter,