appDisplay: Disable built-in mouse scrolling

We want to either handle a scroll event ourselves, or delegate it
to the swipe tracker. What we never want is StScrollView's default
handler that doesn't have any knowledge of pages, so disable it.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1560>
This commit is contained in:
Florian Müllner 2020-06-13 00:08:50 +02:00 committed by Marge Bot
parent 57f96b28ab
commit 543261e6eb

View File

@ -151,6 +151,7 @@ var BaseAppView = GObject.registerClass({
x_expand: true,
y_expand: true,
reactive: true,
enable_mouse_scrolling: false,
});
this._scrollView.set_policy(St.PolicyType.EXTERNAL, St.PolicyType.NEVER);