Fix ScrollView keyboard scroll drift on long key press#15988
Merged
iamAbhi-916 merged 2 commits intomicrosoft:mainfrom Apr 15, 2026
Merged
Fix ScrollView keyboard scroll drift on long key press#15988iamAbhi-916 merged 2 commits intomicrosoft:mainfrom
iamAbhi-916 merged 2 commits intomicrosoft:mainfrom
Conversation
Performance Test ResultsBranch: ✅ Passed161 scenario(s) across 28 suite(s) — no regressionsSectionList
FlatList
TouchableOpacity
ScrollView
TouchableHighlight
Pressable
Modal
Image
ActivityIndicator
Switch
Button
TextInput
View
Text
SectionList.native-perf-test.ts
FlatList.native-perf-test.ts
TouchableHighlight.native-perf-test.ts
TouchableOpacity.native-perf-test.ts
Pressable.native-perf-test.ts
ScrollView.native-perf-test.ts
ActivityIndicator.native-perf-test.ts
TextInput.native-perf-test.ts
Switch.native-perf-test.ts
Button.native-perf-test.ts
Modal.native-perf-test.ts
Image.native-perf-test.ts
View.native-perf-test.ts
Text.native-perf-test.ts
|
vineethkuttan
approved these changes
Apr 15, 2026
github-actions bot
pushed a commit
that referenced
this pull request
Apr 15, 2026
* Fix ScrollView keyboard scroll drift on long key press * Change files
github-actions bot
pushed a commit
that referenced
this pull request
Apr 15, 2026
* Fix ScrollView keyboard scroll drift on long key press * Change files
github-actions bot
pushed a commit
that referenced
this pull request
Apr 15, 2026
* Fix ScrollView keyboard scroll drift on long key press * Change files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Type of Change
Why
When a user long-presses arrow keys (Left/Right/Up/Down) on a focused ScrollView, the scroll continues drifting after the key is released. This happens because the animated ScrollBy path accumulates offsets onto m_targetPosition during rapid key-repeat events, building up a long-running animation that overshoots. Native WinUI ScrollViewer does not exhibit this behavior.
Resolves [Add Relevant Issue Here]
What
Changed arrow key scroll handling in [ScrollViewComponentView::OnKeyDown] to use [animate=false instead of [animate=true] for Up/Down/Left/Right keys.
Screenshots
Before
scroll_view_before_fix.mp4
After
scroll_view_after_fix.mp4
Testing
Locally tested
Changelog
Should this change be included in the release notes: _indicate yes
Add a brief summary of the change to use in the release notes for the next release.
Fix ScrollView keyboard scroll drift on long key press