mirror of
https://github.com/Insality/druid.git
synced 2025-06-27 18:37:44 +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:
parent
0472e5d6db
commit
a631f261d9
@ -169,5 +169,6 @@ Desc
|
|||||||
- __[BREAKING]__ Add _SHIFT_POLICY_ for _Static_ and _Dynamic_ Grids. It mean how nodes will be shifted if you append data between nodes. There are `const.SHIFT.RIGHT`, `const.SHIFT.LEFT` and `const.SHIFT.NO_SHIFT`.
|
- __[BREAKING]__ Add _SHIFT_POLICY_ for _Static_ and _Dynamic_ Grids. It mean how nodes will be shifted if you append data between nodes. There are `const.SHIFT.RIGHT`, `const.SHIFT.LEFT` and `const.SHIFT.NO_SHIFT`.
|
||||||
-- Please check your `StaticGrid:remove` and `DynamicGrid:remove` functions
|
-- Please check your `StaticGrid:remove` and `DynamicGrid:remove` functions
|
||||||
- **Fix #86** A lot of event triggers on scroll inertia moving
|
- **Fix #86** A lot of event triggers on scroll inertia moving
|
||||||
|
- **Fix #101** Fix scroll to other node instead of swipe direction with scroll's points of intereset (without inert settings)
|
||||||
- **Fix #118** Druid.scroll freezes if held in one place for a long time
|
- **Fix #118** Druid.scroll freezes if held in one place for a long time
|
||||||
|
|
||||||
|
@ -544,7 +544,7 @@ function Scroll._check_points(self)
|
|||||||
local inert = self.inertion
|
local inert = self.inertion
|
||||||
if not self._is_inert then
|
if not self._is_inert then
|
||||||
if math.abs(inert.x) > self.style.POINTS_DEADZONE 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
|
return
|
||||||
end
|
end
|
||||||
if math.abs(inert.y) > self.style.POINTS_DEADZONE then
|
if math.abs(inert.y) > self.style.POINTS_DEADZONE then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user