Reduce zoom increment for Ctrl+mouse wheel in blocks workspace #6951
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue
When using Ctrl+mouse wheel to zoom in the blocks workspace, the zoom increment was too large (approximately 20% per scroll), making it difficult to control and resulting in large, disruptive jumps in zoom level.
Changes
Added a zoom configuration to the
blocklyOptionsinpxtarget.jsonwith ascaleSpeedof 1.05. This reduces the zoom increment when using Ctrl+mouse wheel in the blocks workspace from approximately 20% to 5% per scroll event.Before/After
Before: Each mouse wheel tick would change the zoom by approximately 20% (default
scaleSpeedof 1.2), making it difficult to control and leading to large jumps in zoom level.After: Each mouse wheel tick now changes the zoom by only 5%, providing much finer control and a smoother zooming experience that's closer to what a single +/- button click would do.
Implementation
This is a minimal change that only affects the zoom behavior when using Ctrl+mouse wheel and doesn't impact any other functionality. The modification is consistent with Blockly configuration best practices.
Fixes #6809.
Warning
Firewall rules blocked me from connecting to one or more addresses
I tried to connect to the following addresses, but was blocked by firewall rules:
github.com (HTTP Only)ssh -oStrictHostKeyChecking=accept-new -o SendEnv=GIT_PROTOCOL [email protected] git-upload-pack '/microsoft/pxt-arcade-sim.git'(packet block)If you need me to access, download, or install something from one of these locations, you can either:
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.