Skip to content

Font size slider lags behind when the whole of a large note is selected #19

Description

@SteveTheKiller

Reported by @MrPapaya-JRR in the last comment on #16, and split out so it does not get lost now that the cut bug there is fixed.

Select the whole of a large note, then drag the text size slider. The text does resize, but the slider itself does not move until after the resize has finished, so it reads as though the control is not responding. The usual result is overshooting and not landing on the size you wanted.

This is the same shape as the line number problem fixed in 1.2.0: work proportional to the size of the whole document is happening on the UI thread, on every step of the interaction, rather than being throttled or limited to what is on screen.

Likely fix along the same lines: let the slider update immediately, apply the formatting on a short debounce, and apply it to the selection in one pass rather than per step.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

UI IssuePertaining to the user interface/themebugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions