Skip to content

Commit

Permalink
Fixed slider box SetValue (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ketho authored and Stanzilla committed Apr 5, 2020
1 parent 3aa9b71 commit 6edf977
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion basicOptions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ local function newSlider(parent, cvar, minRange, maxRange, stepSize, getValue, s
local factor = 1 / stepSize
value = floor(value * factor + 0.5) / factor
value = max(minRange, min(maxRange, value))
slider:SetValue(value)
slider:SetValue(value, true)
self:SetText(value)
self:ClearFocus()
end)
Expand Down

0 comments on commit 6edf977

Please sign in to comment.