Skip to content

ENA-83: Ability to Zoom In and Zoom Out responsively #238

Open
@dmalan

Description

@dmalan

Expected Behavior

In the browser version of Scratch, it's possible to Zoom In and Zoom Out responsively, as via command-plus and command-minus on a Mac, whereby the entire UI resizes (not just the code area).

We use such when teaching on a projector (zooming in 150% typically), so as to make UI elements more visible, particularly for students farther back.

Actual Behavior

As best I can tell on the desktop version, there might not be a similar feature, unless it's another set of keyboard shortcuts?

By contrast, Electron apps like VS Code desktop do to resize with command-{plus,minus}, per https://github.com/microsoft/vscode/blob/main/src/vs/platform/window/electron-sandbox/window.ts. And a manual workaround (e.g., for a teacher in class) seems to be executing document.body.style.zoom = '150%' in Electron's dev tools

Steps to Reproduce

  1. Install https://scratch.mit.edu/download for macOS.
  2. Launch Scratch desktop app.
  3. Try to zoom in/out with command-{plus,minus}.

System Details

macOS 12.5.1, Scratch desktop 3.29.1.

Screenshots

Browser version, zoomed in

web

Desktop version, not zoomed in

desktop

Thank you!

CC @rongxin-liu @CarterZenke

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions