precise-r slider value setting
This commit is contained in:
parent
cb71ecf991
commit
ad67611601
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue