summaryrefslogtreecommitdiff
path: root/src/ui/touch.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-09-17 19:45:21 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-09-17 19:45:21 +0300
commit2cff7b47486f8dcf7030626cb926d8c69ba0f655 (patch)
tree74e8f0dcbd971624598cac87582e5728758c4bde /src/ui/touch.c
parent554c292266607bde5714d57a6ef6f95ffc59f5d7 (diff)
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.
Diffstat (limited to 'src/ui/touch.c')
-rw-r--r--src/ui/touch.c1
1 files changed, 1 insertions, 0 deletions
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) {
350 setCurrent_Root(mom->affinity->root); 350 setCurrent_Root(mom->affinity->root);
351 dispatchEvent_Widget(mom->affinity, (SDL_Event *) &(SDL_MouseWheelEvent){ 351 dispatchEvent_Widget(mom->affinity, (SDL_Event *) &(SDL_MouseWheelEvent){
352 .type = SDL_MOUSEWHEEL, 352 .type = SDL_MOUSEWHEEL,
353 .which = SDL_TOUCH_MOUSEID,
353 .timestamp = nowTime, 354 .timestamp = nowTime,
354 .x = pixels.x, 355 .x = pixels.x,
355 .y = pixels.y, 356 .y = pixels.y,