[gnome-shell/wip/paging-release: 3/90] AppDisplay: add comment to page swicth treshold



commit 7f3e28a6d27997ffa0d241b81a931bcbd3621f87
Author: Carlos Soriano <carlos soriano89 gmail com>
Date:   Mon Aug 12 17:01:19 2013 +0200

    AppDisplay: add comment to page swicth treshold

 js/ui/appDisplay.js |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index aed4c72..5f13d8f 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -36,7 +36,10 @@ const INACTIVE_GRID_OPACITY = 77;
 const FOLDER_SUBICON_FRACTION = .4;
 
 const MAX_APPS_PAGES = 20;
-
+const PAGE_SWITCH_TIME = 0.3;
+//fraction of page height the finger or mouse must reach before
+//change page
+const PAGE_SWITCH_TRESHOLD = 0.2;
 
 // Recursively load a GMenuTreeDirectory; we could put this in ShellAppSystem too
 function _loadCategory(dir, list) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]