From ab54724366f3fac4626d642984bc0cd3e1f4d39d Mon Sep 17 00:00:00 2001 From: christoph-heinrich Date: Sat, 28 Oct 2023 19:25:45 +0200 Subject: [PATCH] fix: allow a volume border of 0 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