Skip to content

Commit 12a4bb6

Browse files
committed
fix: Make volume gesture the same sensitivity as brightness
Used to be dependent on the amount of volume levels of the device
1 parent ba5db65 commit 12a4bb6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/java/eu/kanade/tachiyomi/ui/player/controls/GestureHandler.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,8 @@ fun GestureHandler(
220220
var originalMPVVolume = currentMPVVolume
221221
var originalBrightness = currentBrightness
222222
val brightnessGestureSens = 0.001f
223-
val volumeGestureSens = 0.03f
224-
val mpvVolumeGestureSens = 0.02f
223+
val volumeGestureSens = 0.001f * viewModel.maxVolume
224+
val mpvVolumeGestureSens = 0.001f * volumeBoostingCap
225225
val isIncreasingVolumeBoost: (Float) -> Boolean = {
226226
volumeBoostingCap > 0 &&
227227
currentVolume == viewModel.maxVolume &&

0 commit comments

Comments
 (0)