When zooming the canvas, update the scroll pos. to center on the mouse cursor

Created on 18 October 2024, 7 months ago

Overview

This is particularly noticeable when the page being previewed is longer (add say 10 hero components one above the other).

When you zoom using either pinch on a trackpad or holding ctrl and using the mouse wheel the zoom/scaling of the canvas happens but the "origin" of the zoom is always the center of the canvas and not the point where your mouse cursor is. This makes it feel a bit janky and sometimes makes the content rapidly disappear from view.

Contrast with the zoom in Figma which centers the zooming on the mouse cursor - it's so much nicer!

Proposed resolution

I think this will involve some clever control of the canvas scroll position in combination with the mouse cursor position when invoking the zoom.

User interface changes

Feature request
Status

Active

Version

0.0

Component

Page builder

Created by

🇬🇧United Kingdom jessebaker

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024