mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-23 02:44:24 +01:00
Canvas: record the opening fit without a branch in the canvas frame
This commit is contained in:
1 parent
2d945f92a1
commit
ca7605fe20
1 file changed
+1
-1
@@ -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