summaryrefslogtreecommitdiff
path: root/src/ui/mobile.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-05-17 11:08:57 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-05-17 11:08:57 +0300
commit9b7651e70cca507fd742c13898b63f1a363d3274 (patch)
tree55027bea25bca899ef22f0abc873c37470177d18 /src/ui/mobile.c
parent2c65d63150b98a3157b0ca9f684275be6c497445 (diff)
Mobile: Swipe improvements
Edge swipe direction is determined in a more dynamic way.
Diffstat (limited to 'src/ui/mobile.c')
-rw-r--r--src/ui/mobile.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ui/mobile.c b/src/ui/mobile.c
index 1c7cad8e..9e877968 100644
--- a/src/ui/mobile.c
+++ b/src/ui/mobile.c
@@ -392,8 +392,11 @@ void finalizeSheet_Mobile(iWidget *sheet) {
392 setFlags_Widget(detailStack, resizeWidthOfChildren_WidgetFlag, iTrue); 392 setFlags_Widget(detailStack, resizeWidthOfChildren_WidgetFlag, iTrue);
393 addChild_Widget(mainDetailSplit, iClob(detailStack)); 393 addChild_Widget(mainDetailSplit, iClob(detailStack));
394 } 394 }
395 //setFlags_Widget(topPanel, topPanelOffset_WidgetFlag, iTrue); /* slide with children */
396 addChild_Widget(topPanel, iClob(makePadding_Widget(lineHeight_Text(defaultBig_FontId)))); 395 addChild_Widget(topPanel, iClob(makePadding_Widget(lineHeight_Text(defaultBig_FontId))));
396 /* Slide top panel with detail panels. */ {
397 setFlags_Widget(topPanel, refChildrenOffset_WidgetFlag, iTrue);
398 topPanel->offsetRef = detailStack;
399 }
397 if (prefsTabs) { 400 if (prefsTabs) {
398 iRelease(removeChild_Widget(sheet, child_Widget(sheet, 0))); /* heading */ 401 iRelease(removeChild_Widget(sheet, child_Widget(sheet, 0))); /* heading */
399 iRelease(removeChild_Widget(sheet, findChild_Widget(sheet, "dialogbuttons"))); 402 iRelease(removeChild_Widget(sheet, findChild_Widget(sheet, "dialogbuttons")));
@@ -561,7 +564,6 @@ void finalizeSheet_Mobile(iWidget *sheet) {
561 } 564 }
562 addPanelChild_(owner, NULL, 0, 0, prevElement); 565 addPanelChild_(owner, NULL, 0, 0, prevElement);
563 destroy_Widget(pageContent); 566 destroy_Widget(pageContent);
564// setFlags_Widget(owner, drawBackgroundToBottom_WidgetFlag, iTrue);
565 } 567 }
566 destroyPending_Root(sheet->root); 568 destroyPending_Root(sheet->root);
567 /* Additional elements for preferences. */ 569 /* Additional elements for preferences. */