Skip to content

Fix frame drops when dragging scrollable content#3171

Merged
Andrei Salavei (ASalavei) merged 1 commit into
jb-mainfrom
andrei.salavei/fix-frame-drops
Jul 2, 2026
Merged

Fix frame drops when dragging scrollable content#3171
Andrei Salavei (ASalavei) merged 1 commit into
jb-mainfrom
andrei.salavei/fix-frame-drops

Conversation

@ASalavei

Copy link
Copy Markdown

On iOS it's required to receive invalidation synchronously right after input event processing, otherwise the invalidation won't trigger the closest frame to render. sendApplyNotifications performs all events that where scheduled during the touch processing.

Fixes https://youtrack.jetbrains.com/issue/CMP-10397/Compose-drops-frame-on-iOS-when-dragging

Release Notes

Fixes - iOS

  • (prerelease fix) Fix frame drops when dragging scrollable content

// Fixes the issue when the `sendPointerEvent` does not trigger `setNeedsRedraw` synchronously,
// which lead to frame drops during input.
// TODO: Remove after CMP-10411
Snapshot.sendApplyNotifications()

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we write a test for it to avoid regressions? I know it's not reproducible on Simulators, but maybe we can control event sequence perversely enough in the test environment

@ASalavei Andrei Salavei (ASalavei) merged commit 96897e9 into jb-main Jul 2, 2026
42 of 46 checks passed
@ASalavei Andrei Salavei (ASalavei) deleted the andrei.salavei/fix-frame-drops branch July 2, 2026 15:30
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.

4 participants