From 732dad747ca7ef1bf134c65aea78847ab1b27bac Mon Sep 17 00:00:00 2001 From: SalavatR Date: Wed, 4 Aug 2021 20:44:36 +0600 Subject: [PATCH] Update scroll.lua --- druid/base/scroll.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/druid/base/scroll.lua b/druid/base/scroll.lua index da20bc97..46b6224f 100644 --- a/druid/base/scroll.lua +++ b/druid/base/scroll.lua @@ -743,7 +743,7 @@ function Scroll._process_scroll_wheel(self, action_id, action) if self.drag.can_y then self.inertion.y = (self.inertion.y + self.style.WHEEL_SCROLL_SPEED * koef) * self.style.FRICT_HOLD - else + elseif self.drag.can_x then self.inertion.x = (self.inertion.x + self.style.WHEEL_SCROLL_SPEED * koef) * self.style.FRICT_HOLD end