diff options
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/documentwidget.c | 8 | ||||
-rw-r--r-- | src/ui/listwidget.c | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index 6f9824de..5c1e473f 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c | |||
@@ -3489,11 +3489,11 @@ static iBool processEvent_DocumentWidget_(iDocumentWidget *d, const SDL_Event *e | |||
3489 | smoothScroll_DocumentWidget_( | 3489 | smoothScroll_DocumentWidget_( |
3490 | d, | 3490 | d, |
3491 | -3 * amount * lineHeight_Text(paragraph_FontId), | 3491 | -3 * amount * lineHeight_Text(paragraph_FontId), |
3492 | smoothDuration_DocumentWidget_(mouse_ScrollType) * | 3492 | smoothDuration_DocumentWidget_(mouse_ScrollType)); |
3493 | /* accelerated speed for repeated wheelings */ | 3493 | /* accelerated speed for repeated wheelings */ |
3494 | (!isFinished_SmoothScroll(&d->scrollY) && pos_Anim(&d->scrollY.pos) < 0.25f | 3494 | // * (!isFinished_SmoothScroll(&d->scrollY) && pos_Anim(&d->scrollY.pos) < 0.25f |
3495 | ? 0.5f | 3495 | // ? 0.5f |
3496 | : 1.0f)); | 3496 | // : 1.0f)); |
3497 | scrollWideBlock_DocumentWidget_( | 3497 | scrollWideBlock_DocumentWidget_( |
3498 | d, mouseCoord, -3 * ev->wheel.x * lineHeight_Text(paragraph_FontId), 167); | 3498 | d, mouseCoord, -3 * ev->wheel.x * lineHeight_Text(paragraph_FontId), 167); |
3499 | } | 3499 | } |
diff --git a/src/ui/listwidget.c b/src/ui/listwidget.c index f896b493..ca15cc20 100644 --- a/src/ui/listwidget.c +++ b/src/ui/listwidget.c | |||
@@ -427,7 +427,7 @@ static iBool processEvent_ListWidget_(iListWidget *d, const SDL_Event *ev) { | |||
427 | /* Traditional mouse wheel. */ | 427 | /* Traditional mouse wheel. */ |
428 | amount *= 3 * d->itemHeight; | 428 | amount *= 3 * d->itemHeight; |
429 | moveSpan_SmoothScroll( | 429 | moveSpan_SmoothScroll( |
430 | &d->scrollY, amount, 200 * scrollSpeedFactor_Prefs(prefs_App(), mouse_ScrollType)); | 430 | &d->scrollY, amount, 600 * scrollSpeedFactor_Prefs(prefs_App(), mouse_ScrollType)); |
431 | } | 431 | } |
432 | return iTrue; | 432 | return iTrue; |
433 | } | 433 | } |