Add outside scroll vector, add correct check for is in view zone

This commit is contained in:
Insality
2021-01-30 20:16:54 +05:00
parent 2b5c5bf6fa
commit 7ac6c9b02b
3 changed files with 38 additions and 7 deletions

View File

@@ -189,6 +189,8 @@ function M:_check_elements_from(index, step)
is_outside = true
-- remove nexts:
-- We add one more element, which is not in view to
-- check what it's always outside to stop spawning
local remove_index = index + step
while self._data_visual[remove_index] do
self:_remove_at(remove_index)