mirror of
https://github.com/Insality/druid
synced 2025-09-28 02:22:19 +02:00
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:
@@ -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
|
Reference in New Issue
Block a user