bugfix: stop writing repeatedly to disk
This commit is contained in:
parent
a49e2e6cc8
commit
19f7ac187b
|
@ -1,6 +1,7 @@
|
|||
on.update = function(dt)
|
||||
if Global_next_save and Global_next_save < Current_time then
|
||||
save_graph_to_disk()
|
||||
Global_next_save = nil
|
||||
end
|
||||
if Pan then
|
||||
Viewport.x = Pan.sx - App.mouse_x()/Viewport.zoom
|
||||
|
@ -29,4 +30,4 @@ on.update = function(dt)
|
|||
else
|
||||
set_mouse_cursor('arrow')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue