Fixed: drain session scroll counter on attach so viewport-hold never consumes stale background-streamed deltas
Some checks failed
Build / build (apt-android-5) (push) Has been cancelled
Build / build (apt-android-7) (push) Has been cancelled
Automatic Dependency Submission / dependency-submission (push) Has been cancelled
Validate Gradle Wrapper / Validation (push) Has been cancelled
Unit tests / testing (push) Has been cancelled
Attach Debug APKs To Release / attach-apks (apt-android-5) (release) Has been cancelled
Attach Debug APKs To Release / attach-apks (apt-android-7) (release) Has been cancelled
Trigger Termux Library Builds on Jitpack / trigger-termux-library-builds (release) Has been cancelled

The emulator's scroll counter keeps growing while a session is not being viewed
(onTextChanged() skips the screen update - and clearScrollCounter() - when the
changed session is not current or the activity is not visible). attachSession()
reset the view state but left the counter intact: the first screen update after
attaching would hand the whole stale delta to the viewport-hold logic, which
treats it as "rows appended just now" and pins the view thousands of lines deep
into the scrollback, making scrolling appear dead in that session.

Discard the counter on attach - the user starts at the live bottom.

versionCode 1024 / versionName 0.119.0-titan2.2
This commit is contained in:
2026-08-20 09:46:52 +02:00
parent a749a89431
commit 6e1995ce69
2 changed files with 13 additions and 2 deletions

View File

@@ -43,8 +43,8 @@ android {
defaultConfig {
minSdkVersion project.properties.minSdkVersion.toInteger()
targetSdkVersion project.properties.targetSdkVersion.toInteger()
versionCode 1023
versionName "0.119.0-titan2.1"
versionCode 1024
versionName "0.119.0-titan2.2"
if (appVersionName) versionName = appVersionName
validateVersionName(versionName)