mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-04-08 23:02:05 -04:00
feat: configurable volume amount on scroll for Media widget (#1641)
* Add audioWheelScrollAmount setting * Add UI to configure volume change amount for Media Player widget * Let Media Player widget use the configured volume change on wheel event
This commit is contained in:
@@ -71,9 +71,9 @@ BasePill {
|
||||
let newVolume = currentVolume;
|
||||
if (isMouseWheelY) {
|
||||
if (deltaY > 0) {
|
||||
newVolume = Math.min(100, currentVolume + 5);
|
||||
newVolume = Math.min(100, currentVolume + SettingsData.audioWheelScrollAmount);
|
||||
} else if (deltaY < 0) {
|
||||
newVolume = Math.max(0, currentVolume - 5);
|
||||
newVolume = Math.max(0, currentVolume - SettingsData.audioWheelScrollAmount);
|
||||
}
|
||||
} else {
|
||||
scrollAccumulatorY += deltaY;
|
||||
|
||||
Reference in New Issue
Block a user