[gnome-shell] app-view: Reset scroll position on switch
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] app-view: Reset scroll position on switch
- Date: Thu, 10 Feb 2011 10:24:06 +0000 (UTC)
commit af3883905b38f1ceeb52938ab883a2762c99b279
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Jan 21 23:01:07 2011 +0100
app-view: Reset scroll position on switch
When switching to the application view, the view is still scrolled
to the position it had when left previously. Given that it is rather
unlikely that the application the user wants to select is located close
to that position, it appears beneficial to start at a predictable
position, so make sure that the scroll position is always reset to
the top.
https://bugzilla.gnome.org/show_bug.cgi?id=641987
js/ui/appDisplay.js | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index 3df634f..97dcd0f 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -51,6 +51,9 @@ AlphabeticalView.prototype = {
let adjustment = this.actor.vscroll.adjustment;
let direction = Overview.SwipeScrollDirection.VERTICAL;
Main.overview.setScrollAdjustment(adjustment, direction);
+
+ // Reset scroll on mapping
+ adjustment.value = 0;
}));
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]