Add cache last_scene and last scroll position to druid example. Fix scroll_to_percent by y (again)

This commit is contained in:
Insality
2022-03-09 18:36:19 +02:00
parent fc2d93c34f
commit a8fcb9a25c
2 changed files with 51 additions and 3 deletions

View File

@@ -277,7 +277,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
)