From 01f9d551f135379262ad55ad1e42f11da343db29 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Mon, 24 Oct 2011 20:06:39 -0400 Subject: [PATCH] messageTray: Fix scroll bugginess in summary items Two nested scroll views were fighing with each other. The reason isn't particularly important and has to do with some silliness involving StAdjustment. The visible effect was that scrolling up and down when in a summary item view would appear to be glitchy, and sometimes not work at all. To fix, make sure that the scroll view we don't care about is disabled when in a summary mode. https://bugzilla.gnome.org/show_bug.cgi?id=661615 --- js/ui/messageTray.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 19b3baf9a..7358b289d 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -586,8 +586,10 @@ const Notification = new Lang.Class({ enableScrolling: function(enableScrolling) { this._scrollPolicy = enableScrolling ? Gtk.PolicyType.AUTOMATIC : Gtk.PolicyType.NEVER; - if (this._scrollArea) + if (this._scrollArea) { this._scrollArea.vscrollbar_policy = this._scrollPolicy; + this._scrollArea.enable_mouse_scrolling = enableScrolling; + } }, _createScrollArea: function() {