question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ReadOnly TextView's broken scrolling after version update

See original GitHub issue

Describe the bug Another breaking change I came across when upgrading from v1.9.0 to 1.12.1, is that I cannot scroll my read-only TextView correctly any more.

To Reproduce Steps to reproduce the behavior:

  1. Add a quite short TextView, so that you don’t have to insert a lot of text to reproduce the error.
  2. Set it’s ReadOnly property to true and its Text property to several lines, such that they exceed its height.
  3. Scroll down to the end and then try to scroll up again, using the keyboard’s up and down arrows.
  4. Notice that you cannot scroll back to the top. If you type a character or use the mouse wheel, it’s as if it gets unstuck for a while and then you might be able to scroll to the top.
  5. Also, notice that it’s sluggish, the cursor might move a little right or left when changing lines and get stuck “randomly”.

Expected behavior To scroll seamlessly, like I used to.

Screenshots Here, I demonstrate the different behavior between the two versions. The read-only is the bottom one, in the “output” frame.

ReadOnlyTextViewScrollingProblem

Desktop (please complete the following information):

  • OS: Windows
  • Version 10

Issue Analytics

  • State:closed
  • Created 4 months ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
tigcommented, May 30, 2023

Thank you for reporting this. Really appreciate you providing repro instructions.

0reactions
tigcommented, Jul 18, 2023

If someone can do a PR for this into develop I’ll grab it and release v1.13.2 asap!

Read more comments on GitHub >

github_iconTop Results From Across the Web

auto-scrolling TextView in android to bring text into view
My problem with this approach is that it looks really odd before the TextView fills up, since what text is present all sits...
Read more >
TextView | Android Developers
Quickly bring your app to life with less code, using a modern declarative approach to UI, and the simplicity of Kotlin. ... Start...
Read more >
Setting resizeToAvoidBottomPadding: false on a Scaffold ...
If I set resizeToAvoidBottomPadding: false on my Scaffold no Textfield is scrolled up anymore and I can't even scroll my content up manually....
Read more >
Android Autosizing TextViews, their pitfalls, and what to do ...
This works fine but unfortunately might lead to performance degradation on lists during scrolling, for instance, due to the extra layout ...
Read more >
The item inside RecyclerView can't be clicked right after scrolling
But I found that my RecyclerView items is not clickable right after the scrolling. If you wait for a second, it will work....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found