start saving changes

This commit is contained in:
Kartik K. Agaram 2023-06-22 18:18:02 -07:00
parent b0ca118a7a
commit c06afaa207
2 changed files with 12 additions and 0 deletions

View File

@ -1,4 +1,7 @@
on.update = function(dt)
if Global_state.thread then
update_all_editors(Global_state.thread, dt)
end
if Pan then
set_mouse_cursor('hand')
Viewport.x = Pan.x - App.mouse_x()/Viewport.zoom

9
0136-update_all_editors Normal file
View File

@ -0,0 +1,9 @@
update_all_editors = function(node, dt)
if node.type == 'text' and not node.button then
edit.update(node.editor, dt)
elseif node.type == 'rows' or node.type == 'cols' then
for _,child in ipairs(node.data) do
update_all_editors(child, dt)
end
end
end