Skip to content

🐞 Editor lags while resizing #119

@Wouter01

Description

@Wouter01

Description

When resizing the editor, the whole app will lag quite a bit.
I've had a look and the culprit seems to be the rulerview:

rulerView = STLineNumberRulerView(textView: textView, scrollView: scrollView)

When this is commented out, everything is (mostly) smooth.

Another thing I noticed is that if textView.widthTracksTextView is set to false, it's also smoother.

To Reproduce

  1. Open editor with file
  2. Resize the window

Expected behavior

Resize is smooth

Version information

CodeEdit: [e.g. 1.0]
macOS: [e.g. 13.1]
Xcode: [e.g. 14.2]

Additional context

No response

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