Page MenuHomePhabricator

Bug 1749169 - Listen to discrete scroll events on Wayland. r=stransky
Needs RevisionPublic

Authored by emilio on Jan 9 2022, 1:57 AM.
Tags
None
Referenced Files
Unknown Object (File)
Jan 14 2025, 4:04 PM
Unknown Object (File)
Feb 10 2024, 2:25 PM
Unknown Object (File)
Oct 31 2023, 3:27 AM
Subscribers

Details

Reviewers
stransky
Bugzilla Bug ID
1749169
Summary

This matches the GTK4 behavior, and shouldn't change behavior on
GNOME+Wayland, since the deltas for mousewheel ticks are 1.0 there.

Diff Detail

Repository
rMOZILLACENTRAL mozilla-central
Branch
default
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

phab-bot published this revision for review.Jan 9 2022, 1:58 AM
phab-bot changed the visibility from "Custom Policy" to "Public (No Login Required)".
phab-bot changed the edit policy from "Custom Policy" to "Restricted Project (Project)".
phab-bot removed a project: secure-revision.
stransky added inline comments.
widget/gtk/nsWindow.cpp
5805

I don't think this is quite correct - we set GDK_SCROLL_MASK to eventWidget.
I'm going to remove mContainer as a widget and use that for Wayland subsurface only so this may wait to mContainer removal.

This revision now requires changes to proceed.Jan 10 2022, 11:13 AM
emilio added inline comments.
widget/gtk/nsWindow.cpp
5805

Is there a bug # for that? Anyways this seemed to work everywhere I tried but sure.

widget/gtk/nsWindow.cpp
5805

No, that's just in my TODO list :)

widget/gtk/nsWindow.cpp
4595

May be worth to preserve the comments at least to keep the knowledge here.