Merge pull request #758 from JakeStanger/fix/trackpad-scroll

fix: `on_scroll` events broken on touchpad
This commit is contained in:
Jake Stanger 2024-11-04 13:08:38 +00:00 committed by GitHub
commit 3b3d86b812
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -571,7 +571,7 @@ pub fn wrap_widget<W: IsA<Widget>>(
let container = EventBox::new();
container.add_class("widget-container");
container.add_events(EventMask::SCROLL_MASK);
container.add_events(EventMask::SCROLL_MASK | EventMask::SMOOTH_SCROLL_MASK);
container.add(&revealer);
common.install_events(&container, &revealer);