From 8d854d5f1a781a58ca9b6f49f970a25030d2a66c Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Tue, 28 Feb 2012 16:51:43 -0500 Subject: [PATCH] altTab: Disable mouse scrolling on the new ScrollView We handle scroll events ourselves, so we don't want the scroll view to attempt to scroll on it. --- js/ui/altTab.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/ui/altTab.js b/js/ui/altTab.js index 0c0b03811..929f49428 100644 --- a/js/ui/altTab.js +++ b/js/ui/altTab.js @@ -562,7 +562,8 @@ const SwitcherList = new Lang.Class({ this._list.connect('get-preferred-height', Lang.bind(this, this._getPreferredHeight)); this._list.connect('allocate', Lang.bind(this, this._allocate)); - this._scrollView = new St.ScrollView({ style_class: 'hfade' }); + this._scrollView = new St.ScrollView({ style_class: 'hfade', + enable_mouse_scrolling: false }); this._scrollView.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.NEVER); let scrollBox = new St.BoxLayout();