=> 1c38deb8409ef9e3f1f4a089ef0e87dcb84bc81e
[1mdiff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c[m [1mindex d0a9a55d..4ab17b42 100644[m [1m--- a/src/ui/documentwidget.c[m [1m+++ b/src/ui/documentwidget.c[m [36m@@ -3917,8 +3917,8 @@[m [mstatic iBool handleWheelSwipe_DocumentWidget_(iDocumentWidget *d, const SDL_Mous[m case none_WheelSwipeState:[m /* A new swipe starts. */[m if (!isInertia_MouseWheelEvent(ev) && !isScrollFinished_MouseWheelEvent(ev)) {[m [31m- int side = ev->x < 0 ? 1 : 2;[m [31m- d->wheelSwipeDistance = -ev->x;[m [32m+[m[32m int side = ev->x > 0 ? 1 : 2;[m [32m+[m[32m d->wheelSwipeDistance = ev->x * 2;[m d->flags &= ~eitherWheelSwipe_DocumentWidgetFlag;[m d->flags |= (side == 1 ? leftWheelSwipe_DocumentWidgetFlag[m : rightWheelSwipe_DocumentWidgetFlag);[m [36m@@ -3935,7 +3935,7 @@[m [mstatic iBool handleWheelSwipe_DocumentWidget_(iDocumentWidget *d, const SDL_Mous[m d->wheelSwipeState = none_WheelSwipeState;[m }[m else {[m [31m- int step = -ev->x * 2;[m [32m+[m[32m int step = ev->x * 2;[m d->wheelSwipeDistance += step;[m /* Remember the maximum speed. */[m if (d->swipeSpeed < 0 && step < 0) {[m [36m@@ -4064,7 +4064,9 @@[m [mstatic iBool processEvent_DocumentWidget_(iDocumentWidget *d, const SDL_Event *e[m #endif[m }[m }[m [31m- else if (ev->type == SDL_MOUSEWHEEL && ev->wheel.y == 0 &&[m [32m+[m[32m else if (ev->type == SDL_MOUSEWHEEL &&[m [32m+[m[32m ev->wheel.y == 0 &&[m [32m+[m[32m d->wheelSwipeState == direct_WheelSwipeState &&[m handleWheelSwipe_DocumentWidget_(d, &ev->wheel)) {[m return iTrue;[m }[m
text/gemini; charset=utf-8
This content has been proxied by September (ba2dc).