#150 Fix scroll to percentage on Y position

This commit is contained in:
Insality 2021-11-20 11:11:52 +02:00
parent 154d9fc166
commit 098df24265

2
druid/base/scroll.lua Normal file → Executable file
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.w, border.y, 1 - percent.y),
-helper.lerp(border.y, border.w, 1 - percent.y),
0
)