|
|
|
|
@ -4936,7 +4936,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 ]; |
|
|
|
|
|