Skip to content

Commit 5909fe5

Browse files
iamAbhi-916rnbot
authored andcommitted
Fix ScrollView keyboard scroll drift on long key press (#15988)
* Fix ScrollView keyboard scroll drift on long key press * Change files
1 parent a54b3f9 commit 5909fe5

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "prerelease",
3+
"comment": "Fix ScrollView keyboard scroll drift on long key press",
4+
"packageName": "react-native-windows",
5+
"email": "74712637+iamAbhi-916@users.noreply.github.com",
6+
"dependentChangeType": "patch"
7+
}

vnext/Microsoft.ReactNative/Fabric/Composition/ScrollViewComponentView.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,16 +1023,16 @@ void ScrollViewComponentView::OnKeyDown(
10231023
args.Handled(pageUp(true));
10241024
break;
10251025
case winrt::Windows::System::VirtualKey::Up:
1026-
args.Handled(lineUp(true));
1026+
args.Handled(lineUp(false));
10271027
break;
10281028
case winrt::Windows::System::VirtualKey::Down:
1029-
args.Handled(lineDown(true));
1029+
args.Handled(lineDown(false));
10301030
break;
10311031
case winrt::Windows::System::VirtualKey::Left:
1032-
args.Handled(lineLeft(true));
1032+
args.Handled(lineLeft(false));
10331033
break;
10341034
case winrt::Windows::System::VirtualKey::Right:
1035-
args.Handled(lineRight(true));
1035+
args.Handled(lineRight(false));
10361036
break;
10371037
}
10381038

0 commit comments

Comments
 (0)