Merge pull request #136 from SalavatR/develop

Update scroll.lua
This commit is contained in:
Maxim Tuprikov 2021-08-07 13:03:45 +03:00 committed by GitHub
commit b4560daa69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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