mirror of
https://github.com/Insality/druid.git
synced 2025-09-27 18:12:19 +02:00
#150 Fix scroll to percentage on Y position
This commit is contained in:
2
druid/base/scroll.lua
Normal file → Executable file
2
druid/base/scroll.lua
Normal file → Executable 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
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user