mirror of
https://github.com/storytold/deckcraft.git
synced 2026-12-01 10:47:56 +01:00
Merge branch 'port/deckcraft/red/app-r5-1' into port/deckcraft/area/app
This commit is contained in:
commit
7c32184df7
2 files changed
+8
-2
No files matched your search
@@ -29,8 +29,9 @@ pub(crate) enum ShowCommands {
|
||||
/// Visit the last slide in the show's range.
|
||||
#[command(label = "Last slide", default = "End")]
|
||||
Last,
|
||||
/// Consume a slide number, or advance when none was typed.
|
||||
#[command(label = "Go to typed slide", default = "Enter")]
|
||||
/// Consume a slide number, or advance when none was typed. Plain Enter is the window's, not a shortcut: the page
|
||||
/// runs this for the Enter that no component took, the focused canvas's included.
|
||||
#[command(label = "Go to typed slide")]
|
||||
GoToTyped,
|
||||
/// Erase a digit, or go back when none was typed.
|
||||
#[command(label = "Erase typed digit", default = "Backspace")]
|
||||
|
||||
@@ -155,7 +155,12 @@ fn canvas_pass(app: &mut SlideApp, ui: &mut Ui, bcx: &mut BodyCx<'_>, show: &mut
|
||||
.show(&mut child, |ui, body| {
|
||||
let Some(mut pass) = tool_pass(&body.env) else { return };
|
||||
let Some(mut space) = pass.space else { return };
|
||||
let given = show.view.zoom;
|
||||
show.view = pass.view.unwrap_or_else(|| space.target());
|
||||
// The canvas zooms only with Ctrl or Cmd + wheel here; that zoom takes over an armed zoom click.
|
||||
if show.view.zoom != given {
|
||||
show.zoom_arm = false;
|
||||
}
|
||||
show.zoomed = zoom::device(&show.view, p.zoom.pixels_per_point) > p.zoom.scheme.hundred * 1.001;
|
||||
publish(bcx, show);
|
||||
if !show.reading {
|
||||
|
||||
Reference in new issue
Block a user