add snapping to most sliders

this will add a bit of impercision, but will be better for both the user and the internals
This commit is contained in:
jill 2021-09-19 15:07:12 +03:00
parent 15316b918f
commit f9cf276952
1 changed files with 5 additions and 2 deletions

View File

@ -48,6 +48,7 @@ function self.createSliders()
default = 0.5, default = 0.5,
name = 'mix', name = 'mix',
displayname = 'Mix', displayname = 'Mix',
snap = 0.01,
tooltip = 'The point at which the first ease snaps into the second one' tooltip = 'The point at which the first ease snaps into the second one'
}) })
end end
@ -82,7 +83,8 @@ function self.createSliders()
max = v.max, max = v.max,
default = v.default, default = v.default,
name = ease1.name .. 'param1' .. i, name = ease1.name .. 'param1' .. i,
displayname = 'Parameter ' .. v.name displayname = 'Parameter ' .. v.name,
snap = 0.001
}) })
end end
end end
@ -96,7 +98,8 @@ function self.createSliders()
max = v.max, max = v.max,
default = v.default, default = v.default,
name = ease2.name .. 'param2' .. i, name = ease2.name .. 'param2' .. i,
displayname = 'Parameter ' .. v.name displayname = 'Parameter ' .. v.name,
snap = 0.001
}) })
end end
end end