Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When a typewriter mode is active, changing the document string scrolls to bottom #5

Open
DivineDominion opened this issue Jul 16, 2017 · 0 comments

Comments

@DivineDominion
Copy link
Collaborator

It's not unusual for a NSTextView to place the insertion point (selectedRange) at the end of the document when you set its string to a new value. Usually, it doesn't scroll down there, though. Depending on the use case, this might not be desirable.

I figure this is due to the fixInsertionPointPosition() call which is there to do just that: re-set the selectedRange to make the view scroll and/or forceLayoutWithNewInsets().

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

No branches or pull requests

1 participant