From 2cff7b47486f8dcf7030626cb926d8c69ba0f655 Mon Sep 17 00:00:00 2001

From: =?UTF-8?q?Jaakko=20Kera=CC=88nen?= jaakko.keranen@iki.fi

Date: Fri, 17 Sep 2021 19:45:21 +0300

Subject: [PATCH 1/1] Touch: Fixed momentum scrolling outside widget

A gesture that ends outside the widget can still be used for momentum scrolling, but the wheel event didn't use the right coordinates.


src/ui/touch.c | 1 +

1 file changed, 1 insertion(+)

diff --git a/src/ui/touch.c b/src/ui/touch.c

index f3f10fe1..5130149b 100644

--- a/src/ui/touch.c

+++ b/src/ui/touch.c

@@ -350,6 +350,7 @@ static void update_TouchState_(void *ptr) {

             setCurrent_Root(mom->affinity->root);

             dispatchEvent_Widget(mom->affinity, (SDL_Event *) &(SDL_MouseWheelEvent){

                                                     .type = SDL_MOUSEWHEEL,

                                                     .timestamp = nowTime,

                                                     .x = pixels.x,

                                                     .y = pixels.y,

--

2.25.1

Proxy Information
Original URL
gemini://git.skyjake.fi/lagrange/work%2Fv1.7/patch/2cff7b47486f8dcf7030626cb926d8c69ba0f655.patch
Status Code
Success (20)
Meta
text/plain
Capsule Response Time
30.768053 milliseconds
Gemini-to-HTML Time
0.418568 milliseconds

This content has been proxied by September (3851b).