Skip to content

Open document with range: Ensure view scrolls to selection#1704

Draft
jeremypw wants to merge 1 commit intomasterfrom
jeremypw/restoreoverride/fix-scroll-to-selection
Draft

Open document with range: Ensure view scrolls to selection#1704
jeremypw wants to merge 1 commit intomasterfrom
jeremypw/restoreoverride/fix-scroll-to-selection

Conversation

@jeremypw
Copy link
Collaborator

@jeremypw jeremypw commented Feb 28, 2026

Fixes #1703

It seems that scrolling the view must be done after Gtk has finished calculating the line heights of the displayed documents. This is achieved by doing the scrolling in a low priority thread.

Opportunity was taken to reduce code repetition.

This fix is extracted from #1702 .

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.

Document opened with range does not scroll to show selected range

1 participant