Skip to content

[Enhancement] Improve pdf viewer resize UX#6153

Merged
nathanlesage merged 1 commit into
Zettlr:developfrom
benniekiss:pdf-viewer
Jan 27, 2026
Merged

[Enhancement] Improve pdf viewer resize UX#6153
nathanlesage merged 1 commit into
Zettlr:developfrom
benniekiss:pdf-viewer

Conversation

@benniekiss

Copy link
Copy Markdown
Collaborator

Description

This PR changes how the PDF viewer determines whether to accept pointer-events to improve UX when resizing the editor pane.

Changes

Instead of watching for focus changes, acceptClicks is now toggled on pointerenter and pointerleave. This improves UX in two ways: the user no longer has to remember to unfocus the viewer before resizing, and the user no longer has to click to focus the viewer before using the UI.

The border around the active viewer has been removed because it no longer serves a purpose.

overflow: hidden was added to the iframe parent element to prevent scroll bars from appearing on the parent.

Additional information

PR (still with the border present):

Screen.Recording.2026-01-26.at.20.42.45-1.mov

Tested on:

@nathanlesage

Copy link
Copy Markdown
Member

Huh, smart! Thanks a bunch!

@nathanlesage nathanlesage merged commit 9dd53b9 into Zettlr:develop Jan 27, 2026
1 check passed
@benniekiss benniekiss deleted the pdf-viewer branch January 27, 2026 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants