#164 Fix scroll_to_percent wrong Y position

This commit is contained in:
Insality 2022-01-27 01:15:12 +02:00
parent b7d2891fed
commit 7a5faa2b85
2 changed files with 2 additions and 2 deletions

View File

@ -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
) )

View File

@ -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