mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-08 22:28:09 +00:00
Canvas: record the opening fit without a branch in the canvas frame
This commit is contained in:
@@ -267,7 +267,7 @@ pub fn show(app: &mut VectorcraftApp, ui: &mut Ui) {
|
||||
fit(app, "view.fitArtboard");
|
||||
}
|
||||
app.canvas.presented = presenting.then_some(rect);
|
||||
app.canvas.opening_fit = if following { app.view().map(|v| view_key(v, rect)) } else { None };
|
||||
app.canvas.opening_fit = following.then(|| app.view().map(|v| view_key(v, rect))).flatten();
|
||||
// Before the canvas's own interaction, so the view the canvas draws is the one they moved to.
|
||||
if bars {
|
||||
scroll_bars(app, ui, rect, outer, &t);
|
||||
|
||||
Reference in New Issue
Block a user