Skip to content

🐞 Scrollbar twitches around when scrolling large file #184

@Eliulm

Description

@Eliulm

Description

When scrolling large files, the scrollbar twitches around the place. Only if the whole document has been completely viewed, the scrollbar will behave as expected.

Upon further investigation, I found that the textview.frame.height property changes a lot during scrolling. It might be the reason, why the scrollbar behaves weirdly.

To Reproduce

  1. Open file with content that does not fit in viewport.
  2. Scroll

Expected Behavior

Scrollbar animation should be smooth and self.textView.frame.height should stay constant during scrolling.

Version Information

CodeEditTextView: 0.6.2
macOS: 13.3.1
Xcode: 14.3

Additional Context

No response

Screenshots

Screen.Recording.2023-04-30.at.20.25.07.mov

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    🏁 Complete

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions