mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-20 09:23:10 +01:00
In the web build (no render worker), while the view of a document whose last render took more than 8 ms moves, the canvas draws the last frame moved with the view and renders once the view is still. An edit in that time rendered the whole canvas at the new view, every frame: a tool drag held at an edge of the canvas (#8551) or a wheel scroll during a drag did that on each step. Such an edit is now drawn into the frame shown, at the view it was rendered for: only the part the edit changed (changed_pixels). The frame stays drawn reprojected and renders whole once the view has been still for STILL_SECS, as for a view change without an edit. An edit that changes more than half of the frame, or one while more than the view and the document change, renders whole at once as before. The partial redraw of draw_frame moves into draw_changed, shared by both. Fixes #8688