From 7f1b55c60950c60991e5fe6292ea9b43496febed Mon Sep 17 00:00:00 2001 From: Abhijeet Jha <74712637+iamAbhi-916@users.noreply.github.com> Date: Tue, 14 Apr 2026 15:20:21 +0530 Subject: [PATCH 1/2] Fix ScrollView keyboard scroll drift on long key press --- .../Fabric/Composition/ScrollViewComponentView.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vnext/Microsoft.ReactNative/Fabric/Composition/ScrollViewComponentView.cpp b/vnext/Microsoft.ReactNative/Fabric/Composition/ScrollViewComponentView.cpp index 98044499fa0..2e9905ed190 100644 --- a/vnext/Microsoft.ReactNative/Fabric/Composition/ScrollViewComponentView.cpp +++ b/vnext/Microsoft.ReactNative/Fabric/Composition/ScrollViewComponentView.cpp @@ -1023,16 +1023,16 @@ void ScrollViewComponentView::OnKeyDown( args.Handled(pageUp(true)); break; case winrt::Windows::System::VirtualKey::Up: - args.Handled(lineUp(true)); + args.Handled(lineUp(false)); break; case winrt::Windows::System::VirtualKey::Down: - args.Handled(lineDown(true)); + args.Handled(lineDown(false)); break; case winrt::Windows::System::VirtualKey::Left: - args.Handled(lineLeft(true)); + args.Handled(lineLeft(false)); break; case winrt::Windows::System::VirtualKey::Right: - args.Handled(lineRight(true)); + args.Handled(lineRight(false)); break; } From 4ca82957d4b7439ea4ab1eb1b8bc2835151d2560 Mon Sep 17 00:00:00 2001 From: Abhijeet Jha <74712637+iamAbhi-916@users.noreply.github.com> Date: Tue, 14 Apr 2026 15:24:20 +0530 Subject: [PATCH 2/2] Change files --- ...ative-windows-c5ccd437-3b14-4157-926e-e9c76f440c38.json | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 change/react-native-windows-c5ccd437-3b14-4157-926e-e9c76f440c38.json diff --git a/change/react-native-windows-c5ccd437-3b14-4157-926e-e9c76f440c38.json b/change/react-native-windows-c5ccd437-3b14-4157-926e-e9c76f440c38.json new file mode 100644 index 00000000000..8f7e34b6bb3 --- /dev/null +++ b/change/react-native-windows-c5ccd437-3b14-4157-926e-e9c76f440c38.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Fix ScrollView keyboard scroll drift on long key press", + "packageName": "react-native-windows", + "email": "74712637+iamAbhi-916@users.noreply.github.com", + "dependentChangeType": "patch" +}