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,
.which = SDL_TOUCH_MOUSEID,
.timestamp = nowTime,
.x = pixels.x,
.y = pixels.y,
--
2.25.1
text/plain
This content has been proxied by September (3851b).