Skip to content

Commit

Permalink
slider fix
Browse files Browse the repository at this point in the history
  • Loading branch information
blooblahguy committed Feb 3, 2019
1 parent bcae366 commit fbc943b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bdConfigLib1.0.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1156,7 +1156,7 @@ function bdConfigLib:SliderElement(module, option, info)
slider.lastValue = 0
slider:SetScript("OnValueChanged", function(self)
local newval
if (info.max > 1) then
if (info.step >= 1) then
newval = round(slider:GetValue())
else
newval = round(slider:GetValue(), 1)
Expand Down

0 comments on commit fbc943b

Please sign in to comment.