precise-r slider value setting

This commit is contained in:
jill 2021-09-18 03:54:51 +03:00
parent cb71ecf991
commit ad67611601

View file

@ -145,7 +145,7 @@ function self.render()
love.graphics.printf(v.displayname, v.x + margin * 2 - ssize * 6, v.y - 8, ssize * 12, 'center')
if dragging then
v.value = ((mx - x) / w) * (v.max - v.min) + v.min
v.value = ((mx - (x + 1)) / (w - 2)) * (v.max - v.min) + v.min
if v.name == 'mix' then graph.touchtimer = 1 end -- sorry !!!
createUI()
end