#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(
-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
)