From bf7f97029544f01c7a2c5447e41c357402a5e1fe Mon Sep 17 00:00:00 2001 From: christoph-heinrich Date: Mon, 30 Oct 2023 18:16:32 +0100 Subject: [PATCH] fix: allow a volume border of 0 (#749) ref. https://github.com/tomasklaen/uosc/issues/722#issuecomment-1783866244 --- dist/scripts/uosc/elements/Volume.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/scripts/uosc/elements/Volume.lua b/dist/scripts/uosc/elements/Volume.lua index f9593f93..ff65f4cd 100644 --- a/dist/scripts/uosc/elements/Volume.lua +++ b/dist/scripts/uosc/elements/Volume.lua @@ -18,7 +18,7 @@ function VolumeSlider:init(props) end function VolumeSlider:update_dimensions() - self.border_size = math.max(1, round(options.volume_border * state.scale)) + self.border_size = math.max(0, round(options.volume_border * state.scale)) end function VolumeSlider:get_visibility() return Elements.volume:get_visibility(self) end