CotEditor icon indicating copy to clipboard operation
CotEditor copied to clipboard

Can't scroll to end of newly opened file immediately

Open LostInCompilation opened this issue 8 months ago • 2 comments

Description

When I open a file and scroll down to the end of it, parts of the file are missing and I cant fully scroll down. I first have to scroll up shortly, then the rest of the file seems to get loaded and I can scroll further to the end. This issue appeared a few weeks (or 2-3 months) ago. It's quite annoying and disrupts the workflow a lot. I don't think opening a 800 lines long file needs seconds to load everything, so I don't think a too big file size is the issue here.

Here's a video of the issue: https://github.com/user-attachments/assets/e3feb172-5206-4975-8938-8c5d8cc5a0b5

To Reproduce

  1. Open a file
  2. Scroll to the end immeaditely
  3. Scrolling to end not possible unless repeated tries / short scroll up before

Expected behavior

No response

CotEditor version

5.1.5 (714)

macOS version

15.4.1

Additional context

No response

LostInCompilation avatar Apr 23 '25 03:04 LostInCompilation

Thank you for the feedback. However, I could not reproduce this phenomenon in my environment even though the versions of CotEditor and macOS are the same as yours. I've also looked into the code-level changes in the last few months but couldn't find a possible cause. Are there any specific conditions that need to be met for this to occur? Additionally, is there a difference when you hide the line number view?

1024jp avatar Apr 25 '25 13:04 1024jp

Are there any specific conditions that need to be met for this to occur?

No it happens with small and big files, with and without quitting CotEditor. Nothing I can make out sadly.

Additionally, is there a difference when you hide the line number view?

No the issue persists when turning off line numbers.

LostInCompilation avatar May 12 '25 23:05 LostInCompilation

Has the situation changed since both macOS and CotEditor were updated?

To be honest, since CotEditor adopts deferred rendering for performance reasons, I believe this phenomenon is somewhat unavoidable (Though, I also don’t find it ideal that this stuttering occurs with the amount of data you shared).

Considering CotEditor’s upcoming text rendering migration, I decided not to address this issue individually. I appreciate your understanding.

1024jp avatar Oct 26 '25 11:10 1024jp

No the issue is still present with macOS 26.0.1 and the newest CotEditor version.

LostInCompilation avatar Oct 26 '25 13:10 LostInCompilation