mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-19 23:05:21 +00:00
* fix(app): keep the Android chat still when a tap or long-press lands on its text Chat text is selectable, and Android focuses selectable text when it is touched. React Native's ReactScrollView.requestChildFocus scrolls a newly focused child fully into view, so tapping a link or a word in a reply that was partly off screen, or long-pressing it, scrolled the timeline by up to a screen. The inverted timeline had a guard for this, but the guard depended on the inversion (#4090, then #7131), and #8717 removed it with the inversion. PaseoScrollView now skips that reveal when the focused view is selectable, non-editable text in touch mode. Inputs, and focus moved by a keyboard, still scroll into view. * test(app): assert the long press selects the word under the finger * fix(app): keep the Android chat still when a tapped reply keeps streaming Touched chat text keeps focus. When a streaming reply's text is replaced, ArrowKeyMovementMethod collapses the selection to 0, and the focused text view asks its scroll parent to reveal that line, which scrolled the timeline back to the reply's first line. PaseoScrollView now drops rectangle requests while touched read-only text holds focus with nothing selected. A drag on a selection handle still reveals. The input control test now makes its EditText selectable, as React Native's TextInput does, so it covers the editor check. * fix(app): keep the Android chat still when the timeline resizes after a tap ScrollView.onSizeChanged scrolls the focused view into view when the scroll view changes height. Touched chat text keeps focus, so a composer change below the timeline (a queued message being sent, a send error appearing) realigned the tapped reply. PaseoScrollView now skips that reveal while touched read-only text holds focus.