Feature/scroll (#22)

* base scroll implementation

* add scroll collection example
mofidy scrolls, fix callback calls

* unhover button if start swipe
notify input components on swipe

* add node center offset, calc by pivots
modify with with node center scroll (to correct scroll to point)

* Refactor, add some docs

* fix: set_pos on end on scroll

* add gui.animate speed in settings
This commit is contained in:
Maxim Tuprikov
2019-04-07 12:10:16 +03:00
committed by GitHub
parent bd2c06d81b
commit 19a9d27635
10 changed files with 1401 additions and 2 deletions

View File

@@ -83,4 +83,14 @@ function M.get_size(instance)
end
function M.get_all_pos(instance)
local result = {}
for i = 1, #instance.nodes do
table.insert(result, gui.get_position(instance.nodes[i]))
end
return result
end
return M