typst / webapp-issues

Issue tracker for Typst's web app.
https://typst.app
13 stars 0 forks source link

Inconsistent behaviour between ctrl+mouse_wheel_scroll and ctrl+(+/-) shortcut in text editor #395

Open srprca opened 4 months ago

srprca commented 4 months ago

Description

In the text editor, ctrl+mouse_wheel_scroll always changes the zoom-in/out scale of the preview pane, regardless of the cursor position, and even if the preview pane is hidden, in which case the changes are only visible once it is displayed again. On the other hand, ctrl+(+/-) shortcut changes the browser-wide page zoom-in/out scale, which toggles the preview pane display when the scale is too large to fit both it and the text editing pane. I believe it would be better for both zoom-in/out methods to behave in the same manner: change the preview pane scale if the cursor is above it, otherwise change the browser's page scale.

Reproduction URL

No response

Browsers

Firefox

OS

Linux