Add history scroll restoration for scroll views by guanglinn · Pull Request #2366 · gsantner/markor (original) (raw)

@guanglinn

Add support for auto scroll/history scroll restoration for scroll views. These features can improve the user experience.

In this PR:

  1. Scroll view in FontSizeDialog
    can auto scroll to the selection of current font size;
  2. Scroll view in SpecialKeyDialog
    can auto save and restore previous scroll position;
  3. Scroll view in TextActionsBar
    can keep scroll position even being reloaded;
  4. Padding in view and edit mode
    minor improvements.

@guanglinn

It is painful and not user-friendly to scroll the view from the origin to the previous position with your fingers every time.

Here is the 3 improved scroll views, you can make a comparison with a previous version.

2024-07-25-auto-restore-position.mp4

@guanglinn

@guanglinn guanglinn changed the titleAdd auto restore position for scroll views Add history scroll restoration for scroll views

Jul 27, 2024

@gsantner

gsantner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, I tried it and looked good! Merging

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})