From af3883905b38f1ceeb52938ab883a2762c99b279 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 21 Jan 2011 23:01:07 +0100 Subject: [PATCH] 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 file changed, 3 insertions(+) diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index 3df634f76..97dcd0f91 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; })); },