Skip to content

servoshell: Use WheelMode::DeltaPixel on line-based wheel events converted to pixels#41184

Merged
mrobinson merged 1 commit intoservo:mainfrom
mrobinson:pixel-delta-mode
Dec 10, 2025
Merged

servoshell: Use WheelMode::DeltaPixel on line-based wheel events converted to pixels#41184
mrobinson merged 1 commit intoservo:mainfrom
mrobinson:pixel-delta-mode

Conversation

@mrobinson
Copy link
Copy Markdown
Member

servoshell is converting line-based wheel scrolls to pixels, so we need
to send WheelMode::DeltaPixel in with the value. This value is
processed directly by script and is the way it interprets the delta.

A better fix here would be to actually process these values fully in
script, but that is aved for a followup.

Testing: This part of servoshell is untested, so it's difficult to add
a test for this.
Fixes: #41164.

…nverted to pixels

servoshell is converting line-based wheel scrolls to pixels, so we need
to send `WheelMode::DeltaPixel` in with the value. This value is
processed directly by script and is the way it interprets the delta.

A better fix here would be to actually process these values fully in
script, but that is aved for a followup.

Signed-off-by: Martin Robinson <[email protected]>
@mrobinson mrobinson requested a review from atbrakhi as a code owner December 10, 2025 15:53
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Dec 10, 2025
@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Dec 10, 2025
@atbrakhi atbrakhi added this pull request to the merge queue Dec 10, 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 Dec 10, 2025
github-merge-queue bot pushed a commit that referenced this pull request Dec 10, 2025
…nverted to pixels (#41184)

servoshell is converting line-based wheel scrolls to pixels, so we need
to send `WheelMode::DeltaPixel` in with the value. This value is
processed directly by script and is the way it interprets the delta.

A better fix here would be to actually process these values fully in
script, but that is aved for a followup.

Testing: This part of servoshell is untested, so it's difficult to add
a test for this.
Fixes: #41164.

Signed-off-by: Martin Robinson <[email protected]>
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 10, 2025
@servo-highfive servo-highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Dec 10, 2025
@mrobinson mrobinson added this pull request to the merge queue Dec 10, 2025
@servo-highfive servo-highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-tests-failed The changes caused existing tests to fail. labels Dec 10, 2025
Merged via the queue into servo:main with commit c703821 Dec 10, 2025
38 checks passed
@mrobinson mrobinson deleted the pixel-delta-mode branch December 10, 2025 22:08
@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 Dec 10, 2025
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.

Scroll magnitude may be excessive for things that use it

3 participants