mirror of
https://github.com/Insality/druid
synced 2025-06-27 10:27:48 +02:00
#164 Fix scroll_to_percent wrong Y position
This commit is contained in:
parent
b7d2891fed
commit
7a5faa2b85
@ -282,7 +282,7 @@ function Scroll.scroll_to_percent(self, percent, is_instant)
|
|||||||
|
|
||||||
local pos = vmath.vector3(
|
local pos = vmath.vector3(
|
||||||
-helper.lerp(border.x, border.z, 1 - percent.x),
|
-helper.lerp(border.x, border.z, 1 - percent.x),
|
||||||
-helper.lerp(border.y, border.w, 1 - percent.y),
|
helper.lerp(border.y, border.w, 1 - percent.y),
|
||||||
0
|
0
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ local M = {}
|
|||||||
M.default_style = nil
|
M.default_style = nil
|
||||||
|
|
||||||
|
|
||||||
function M.get_text(name, a, b, c, d, e, f, g)
|
function M.get_text(name, a, b, c, d, e, f)
|
||||||
return "[Druid]: locales not inited"
|
return "[Druid]: locales not inited"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user