From bd20d86ababbed2a52b3d72757d28cb7da5f2876 Mon Sep 17 00:00:00 2001 From: Jacopo De Simoi Date: Tue, 29 May 2018 10:52:30 -0400 Subject: [PATCH] Make autoscroll faster --- ui/pageview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/pageview.cpp b/ui/pageview.cpp index 8635a17a6..89be5c651 100644 --- a/ui/pageview.cpp +++ b/ui/pageview.cpp @@ -5062,7 +5062,7 @@ void PageView::slotAutoScroll() // compute delay between timer ticks and scroll amount per tick int index = abs( d->scrollIncrement ) - 1; // 0..9 - const int scrollDelay[10] = { 200, 100, 50, 30, 20, 30, 25, 20, 30, 20 }; + const int scrollDelay[10] = { 100, 50, 25, 15, 10, 15, 12, 10, 15, 10 }; const int scrollOffset[10] = { 1, 1, 1, 1, 1, 2, 2, 2, 4, 4 }; d->autoScrollTimer->start( scrollDelay[ index ] ); int delta = d->scrollIncrement > 0 ? scrollOffset[ index ] : -scrollOffset[ index ];