Skip to content

Fix: Stop Filter/Sort sheet jitter on Android 12+#362

Merged
d4rken merged 1 commit into
mainfrom
fix/filter-sort-sheet-jitter
May 4, 2026
Merged

Fix: Stop Filter/Sort sheet jitter on Android 12+#362
d4rken merged 1 commit into
mainfrom
fix/filter-sort-sheet-jitter

Conversation

@d4rken
Copy link
Copy Markdown
Member

@d4rken d4rken commented May 4, 2026

What changed

The Filter and Sort sheet (opened from the filter icon on the Apps and Permissions tabs) no longer jitters or bounces when scrolled at its top boundary on Android 12 and newer.

Technical Context

  • Root cause: the inner Column + verticalScroll inside both ModalBottomSheets used the default overscroll. On API 31+ that is the stretch effect, which dispatches scroll deltas through NestedScrollConnection. ModalBottomSheet also listens on that connection for its drag-to-dismiss handoff — the two race and produce the visible jitter.
  • Fix: pass overscrollEffect = null on the inner verticalScroll so it no longer dispatches overscroll deltas. Sheet drag-to-dismiss still works via the same nested-scroll handoff.
  • Trade-off: pre-API-31 edge glow inside these sheets is also removed — fine given how small the sheet content is.
  • Other ModalBottomSheets in the app (WatcherFilterBottomSheet, the support debug-log sheet) were checked; they don't use verticalScroll and are unaffected.

The Column inside the apps and permissions filter/sort ModalBottomSheet used verticalScroll without overrides. On API 31+ the default stretch overscroll feeds nested-scroll deltas that race with ModalBottomSheet's own drag-to-dismiss connection, producing visible jitter at the top boundary of the sheet content.

Pass overscrollEffect = null on both verticalScroll calls so the inner content no longer dispatches overscroll deltas. Sheet drag-to-dismiss still works via the existing nested-scroll handoff.

Trade-off: pre-API-31 edge glow is also removed inside these sheets — acceptable given the small content.
@d4rken d4rken added the bug Something isn't working label May 4, 2026
@d4rken d4rken merged commit 1819df1 into main May 4, 2026
11 checks passed
@d4rken d4rken deleted the fix/filter-sort-sheet-jitter branch May 4, 2026 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant