Skip to content

Keep an Android list where it was scrolled to when selecting - #1818

Merged
robertying merged 1 commit into
mainfrom
claude/project-thread-k963n9
Nov 25, 2026
Merged

robertying merged 1 commit into
mainfrom
claude/project-thread-k963n9

Conversation

@robertying

Copy link
Copy Markdown
Owner

Requested by Rui · project thread

What

On Android, scrolling a notice, assignment or file list down and then tapping Select left blank space above the list.

Why

React Native's Android ScrollView with a refreshControl renders the scroll view inside the refresh control (AndroidSwipeRefreshLayout). FilterList removed the refresh control while selecting or reordering, so the element tree changed and a new native scroll view mounted at offset 0, while FlashList kept its rows laid out for the old offset. The space above them showed blank.

Change

Android keeps the refresh control mounted in every mode and turns pull to refresh off with enabled={false} while selecting or reordering. iOS and the Electron app still drop the control, as before (on iOS it is a child of the scroll view, so removing it doesn't remount anything). The Mac still has none.

Tests

  • New FilterList test: on Android the control stays the same element through select mode, with enabled off and back on. It fails without the fix.
  • pnpm typecheck, pnpm lint, pnpm format --check, and the iOS Jest project pass.

Generated by Claude Code

On Android a scroll view with pull to refresh sits inside the refresh
control, so removing the control in selection mode mounted a new scroll
view at the top, under rows still laid out for the old position: blank
space above the list. Android now keeps the control and turns it off
while selecting or reordering.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@robertying robertying self-assigned this Nov 25, 2026
@robertying
robertying merged commit 2052e35 into main Nov 25, 2026
14 checks passed
@robertying
robertying deleted the claude/project-thread-k963n9 branch November 25, 2026 03:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants