summaryrefslogtreecommitdiff
path: root/src/ui/touch.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-05-17 18:17:13 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-05-17 18:17:13 +0300
commitab10c23969bb7d7be73613d50ae2a3755da39fb0 (patch)
treea9c13a233d76d9ac19ce1e6a771e8e9c6e8466ec /src/ui/touch.c
parent42ac51ac631ce111324aaa8cba4659af0489da7b (diff)
Mobile: Preferences on tablet devices
Use the mobile layout on tablets as well.
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 e8f53bca..296e0e08 100644
--- a/src/ui/touch.c
+++ b/src/ui/touch.c
@@ -586,6 +586,7 @@ iBool processEvent_Touch(const SDL_Event *ev) {
586// pixels.y, y_F3(amount), y_F3(touch->accum)); 586// pixels.y, y_F3(amount), y_F3(touch->accum));
587 if (pixels.x || pixels.y) { 587 if (pixels.x || pixels.y) {
588 setFocus_Widget(NULL); 588 setFocus_Widget(NULL);
589 setCurrent_Root(touch->affinity->root);
589 dispatchMotion_Touch_(touch->pos[0], 0); 590 dispatchMotion_Touch_(touch->pos[0], 0);
590 dispatchEvent_Widget(touch->affinity, (SDL_Event *) &(SDL_MouseWheelEvent){ 591 dispatchEvent_Widget(touch->affinity, (SDL_Event *) &(SDL_MouseWheelEvent){
591 .type = SDL_MOUSEWHEEL, 592 .type = SDL_MOUSEWHEEL,