summaryrefslogtreecommitdiff
path: root/src/ui/documentwidget.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/documentwidget.c')
-rw-r--r--src/ui/documentwidget.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index 23731105..ea86a810 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -1444,8 +1444,8 @@ static void scrollBegan_DocumentWidget_(iAnyObject *any, int offset, uint32_t du
1444 } 1444 }
1445 /* Show and hide toolbar on scroll. */ 1445 /* Show and hide toolbar on scroll. */
1446 if (deviceType_App() == phone_AppDeviceType) { 1446 if (deviceType_App() == phone_AppDeviceType) {
1447 if (prefs_App()->hideToolbarOnScroll && iAbs(offset) > 5 && 1447 const float normPos = normScrollPos_DocumentWidget_(d);
1448 normScrollPos_DocumentWidget_(d) > 0) { 1448 if (prefs_App()->hideToolbarOnScroll && iAbs(offset) > 5 && normPos >= 0) {
1449 showToolbars_Root(as_Widget(d)->root, offset < 0); 1449 showToolbars_Root(as_Widget(d)->root, offset < 0);
1450 } 1450 }
1451 } 1451 }