Skip to content

Commit

Permalink
fix: allow a volume border of 0 (#749)
Browse files Browse the repository at this point in the history
  • Loading branch information
christoph-heinrich committed Oct 30, 2023
1 parent 4f091d3 commit bf7f970
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dist/scripts/uosc/elements/Volume.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bf7f970

Please sign in to comment.