From 85d2b9e32aa1d4539ba1077f88e1231dfe6de6d1 Mon Sep 17 00:00:00 2001 From: Carlos Soriano Date: Fri, 6 Sep 2013 09:30:51 +0200 Subject: [PATCH] appDisplay: Also scroll on focused indicators Since now if you focus the indicators, you can't scroll and change pages in the app picker. That was reported as odd from some users/developers. So allow to scroll when the focus is in the indicators. https://bugzilla.gnome.org/show_bug.cgi?id=707609 --- js/ui/appDisplay.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index 7263ef093..dbcb8d9b6 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -175,7 +175,8 @@ const PageIndicators = new Lang.Class({ vertical: true, x_expand: true, y_expand: true, x_align: Clutter.ActorAlign.END, - y_align: Clutter.ActorAlign.CENTER }); + y_align: Clutter.ActorAlign.CENTER, + reactive: true }); this._nPages = 0; this._currentPage = undefined; @@ -281,6 +282,7 @@ const AllView = new Lang.Class({ function(indicators, pageIndex) { this.goToPage(pageIndex); })); + this._pageIndicators.actor.connect('scroll-event', Lang.bind(this, this._onScroll)); this.actor.add_actor(this._pageIndicators.actor); this._folderIcons = [];