[gnome-shell/wip/paging-release: 16/93] PAginationScrollView: time	when changin more than 1 page is the same as 1
- From: Carlos Soriano <csoriano src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gnome-shell/wip/paging-release: 16/93] PAginationScrollView: time	when changin more than 1 page is the same as 1
 
- Date: Mon, 12 Aug 2013 17:13:07 +0000 (UTC)
 
commit 6afc349694ab7bc0201c5b59b1c0d5b23a43b321
Author: Carlos Soriano <carlos soriano89 gmail com>
Date:   Mon Aug 12 17:47:52 2013 +0200
    PAginationScrollView: time when changin more than 1 page is the same as 1
 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 6c90d01..39a73dc 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -338,7 +338,10 @@ const PaginationScrollView = new Lang.Class({
             time = (diffFromPage / velocity) / 1000;
             
         } else
-            time = PAGE_SWITCH_TIME * diffFromPage / totalHeight;       
+            time = PAGE_SWITCH_TIME * diffFromPage / totalHeight;
+        // Take care when we are changing more than one page, maximum time
+        // regardless the velocity is the default one
+        time = Math.min(time, PAGE_SWITCH_TIME);
         if(pageNumber < this._pages.nPages() && pageNumber >= 0) {
             this._currentPage = pageNumber;
             let params = { value: this._pages.getPagePosition(this._currentPage)[1],
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]