mirror of
https://github.com/Insality/druid.git
synced 2025-09-27 18:12:19 +02:00
#101 Fix scroll to other node instead of swipe direction with scroll's points of intereset (without inert settings)
This commit is contained in:
@@ -544,7 +544,7 @@ function Scroll._check_points(self)
|
||||
local inert = self.inertion
|
||||
if not self._is_inert then
|
||||
if math.abs(inert.x) > self.style.POINTS_DEADZONE then
|
||||
self:scroll_to_index(self.selected - helper.sign(inert.x))
|
||||
self:scroll_to_index(self.selected + helper.sign(inert.x))
|
||||
return
|
||||
end
|
||||
if math.abs(inert.y) > self.style.POINTS_DEADZONE then
|
||||
|
Reference in New Issue
Block a user