summaryrefslogtreecommitdiff
path: root/src/ui/documentwidget.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/documentwidget.c')
-rw-r--r--src/ui/documentwidget.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index cd2dd14a..0a7be185 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -2150,8 +2150,13 @@ static iBool processEvent_DocumentWidget_(iDocumentWidget *d, const SDL_Event *e
2150 smoothDuration_DocumentWidget_ * 2150 smoothDuration_DocumentWidget_ *
2151 /* accelerated speed for repeated wheelings */ 2151 /* accelerated speed for repeated wheelings */
2152 (!isFinished_Anim(&d->scrollY) && pos_Anim(&d->scrollY) < 0.25f ? 0.5f : 1.0f)); 2152 (!isFinished_Anim(&d->scrollY) && pos_Anim(&d->scrollY) < 0.25f ? 0.5f : 1.0f));
2153#if defined (iPlatformMsys)
2154 const int horizStep = ev->wheel.x * 3;
2155#else
2156 const int horizStep = ev->wheel.x * -3;
2157#endif
2153 scrollWideBlock_DocumentWidget_( 2158 scrollWideBlock_DocumentWidget_(
2154 d, mouseCoord, -ev->wheel.x * lineHeight_Text(paragraph_FontId) * 3, 167); 2159 d, mouseCoord, horizStep * lineHeight_Text(paragraph_FontId), 167);
2155 } 2160 }
2156 iChangeFlags(d->flags, noHoverWhileScrolling_DocumentWidgetFlag, iTrue); 2161 iChangeFlags(d->flags, noHoverWhileScrolling_DocumentWidgetFlag, iTrue);
2157 return iTrue; 2162 return iTrue;
@@ -2343,7 +2348,7 @@ static iBool processEvent_DocumentWidget_(iDocumentWidget *d, const SDL_Event *e
2343 further to do. */ 2348 further to do. */
2344 return iTrue; 2349 return iTrue;
2345 } 2350 }
2346 if (!requestMedia_DocumentWidget_(d, linkId)) { 2351 if (!requestMedia_DocumentWidget_(d, linkId)) {
2347 if (linkFlags & content_GmLinkFlag) { 2352 if (linkFlags & content_GmLinkFlag) {
2348 /* Dismiss shown content on click. */ 2353 /* Dismiss shown content on click. */
2349 setData_Media(media_GmDocument(d->doc), 2354 setData_Media(media_GmDocument(d->doc),