From 7a5faa2b85c6be8e5765f455665771fac4d2823c Mon Sep 17 00:00:00 2001 From: Insality Date: Thu, 27 Jan 2022 01:15:12 +0200 Subject: [PATCH] #164 Fix scroll_to_percent wrong Y position --- druid/base/scroll.lua | 2 +- druid/system/settings.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/druid/base/scroll.lua b/druid/base/scroll.lua index 22a9d8e..1ff1d37 100755 --- a/druid/base/scroll.lua +++ b/druid/base/scroll.lua @@ -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 ) diff --git a/druid/system/settings.lua b/druid/system/settings.lua index 9d217ab..1ac9763 100755 --- a/druid/system/settings.lua +++ b/druid/system/settings.lua @@ -9,7 +9,7 @@ local M = {} 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" end