Skip to content

script: Have the renderer process root viewport handle keyboard scrolling#40108

Merged
atbrakhi merged 1 commit intoservo:mainfrom
mrobinson:pinch-zoom-keyboard-scrolling
Oct 24, 2025
Merged

script: Have the renderer process root viewport handle keyboard scrolling#40108
atbrakhi merged 1 commit intoservo:mainfrom
mrobinson:pinch-zoom-keyboard-scrolling

Conversation

@mrobinson
Copy link
Copy Markdown
Member

When scrolling the root viewport of a WebView (the top level frame),
ask the renderer to process that event. This allows keyboard scrolling
to pan the pinch zoom viewport. This is important for moving around a
pinch zoomed WebView via the keyboard.

Testing: The changes this makes to panning are hard to test, since we
have no way of retrieving the pinch zoom viewport values from Servo,
but the normal scrolling is tested by a servodriver test which is still
passing with these changes.

When scrolling the root viewport of a WebView (the top level frame),
ask the renderer to process that event. This allows keyboard scrolling
to pan the pinch zoom viewport. This is important for moving around a
pinch zoomed WebView via the keyboard.

Co-authored-by: Rakhi Sharma <[email protected]>
Signed-off-by: Martin Robinson <[email protected]>
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Oct 23, 2025
@jdm jdm changed the title script: Have the renderer process root viewport keyboard scrolling script: Have the renderer process root viewport handle keyboard scrolling Oct 23, 2025
@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Oct 24, 2025
@atbrakhi atbrakhi added this pull request to the merge queue Oct 24, 2025
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Oct 24, 2025
Merged via the queue into servo:main with commit 4551e9d Oct 24, 2025
34 checks passed
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Oct 24, 2025
@mrobinson mrobinson deleted the pinch-zoom-keyboard-scrolling branch November 18, 2025 10:07
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.

3 participants