diff options
Diffstat (limited to 'src/ui/documentwidget.c')
-rw-r--r-- | src/ui/documentwidget.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index 3fc22bdf..bd624059 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c | |||
@@ -1674,7 +1674,7 @@ static void scrollBegan_DocumentWidget_(iAnyObject *any, int offset, uint32_t du | |||
1674 | if (deviceType_App() == phone_AppDeviceType) { | 1674 | if (deviceType_App() == phone_AppDeviceType) { |
1675 | const float normPos = normScrollPos_DocumentWidget_(d); | 1675 | const float normPos = normScrollPos_DocumentWidget_(d); |
1676 | if (prefs_App()->hideToolbarOnScroll && iAbs(offset) > 5 && normPos >= 0) { | 1676 | if (prefs_App()->hideToolbarOnScroll && iAbs(offset) > 5 && normPos >= 0) { |
1677 | showToolbars_Root(as_Widget(d)->root, offset < 0); | 1677 | showToolbar_Root(as_Widget(d)->root, offset < 0); |
1678 | } | 1678 | } |
1679 | } | 1679 | } |
1680 | updateVisible_DocumentWidget_(d); | 1680 | updateVisible_DocumentWidget_(d); |
@@ -2840,7 +2840,11 @@ static iBool handleCommand_DocumentWidget_(iDocumentWidget *d, const char *cmd) | |||
2840 | if (d->flags & openedFromSidebar_DocumentWidgetFlag && | 2840 | if (d->flags & openedFromSidebar_DocumentWidgetFlag && |
2841 | !isVisible_Widget(findWidget_App("sidebar"))) { | 2841 | !isVisible_Widget(findWidget_App("sidebar"))) { |
2842 | postCommand_App("sidebar.toggle"); | 2842 | postCommand_App("sidebar.toggle"); |
2843 | showToolbars_Root(get_Root(), iTrue); | 2843 | showToolbar_Root(get_Root(), iTrue); |
2844 | #if defined (iPlatformAppleMobile) | ||
2845 | /* TODO: Add a softer tap? */ | ||
2846 | // playHapticEffect_iOS(tap_HapticEffect); | ||
2847 | #endif | ||
2844 | return iTrue; | 2848 | return iTrue; |
2845 | } | 2849 | } |
2846 | d->flags &= ~openedFromSidebar_DocumentWidgetFlag; | 2850 | d->flags &= ~openedFromSidebar_DocumentWidgetFlag; |