summaryrefslogtreecommitdiff
path: root/src/ui/documentwidget.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-12-25 07:43:51 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-12-25 07:43:51 +0200
commit38f1502c2d643c602c66be72656e79f5854f85e6 (patch)
tree85a7ff4bc75acfb18c085d9637710a0f2e960985 /src/ui/documentwidget.c
parent1c29e992b9c7d17a4e0ca2c394fdf605706c961f (diff)
Mobile: Fixed pull-to-refresh
Diffstat (limited to 'src/ui/documentwidget.c')
-rw-r--r--src/ui/documentwidget.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index b20ae672..313fe2ee 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -480,9 +480,6 @@ void init_DocumentView(iDocumentView *d) {
480 d->invalidRuns = new_PtrSet(); 480 d->invalidRuns = new_PtrSet();
481 d->drawBufs = new_DrawBufs(); 481 d->drawBufs = new_DrawBufs();
482 d->pageMargin = 5; 482 d->pageMargin = 5;
483 if (deviceType_App() != desktop_AppDeviceType) {
484 d->scrollY.flags |= pullDownAction_SmoothScrollFlag; /* pull to refresh */
485 }
486 d->hoverPre = NULL; 483 d->hoverPre = NULL;
487 d->hoverAltPre = NULL; 484 d->hoverAltPre = NULL;
488 d->hoverLink = NULL; 485 d->hoverLink = NULL;
@@ -523,6 +520,9 @@ void deinit_DocumentView(iDocumentView *d) {
523static void setOwner_DocumentView_(iDocumentView *d, iDocumentWidget *doc) { 520static void setOwner_DocumentView_(iDocumentView *d, iDocumentWidget *doc) {
524 d->owner = doc; 521 d->owner = doc;
525 init_SmoothScroll(&d->scrollY, as_Widget(doc), scrollBegan_DocumentWidget_); 522 init_SmoothScroll(&d->scrollY, as_Widget(doc), scrollBegan_DocumentWidget_);
523 if (deviceType_App() != desktop_AppDeviceType) {
524 d->scrollY.flags |= pullDownAction_SmoothScrollFlag; /* pull to refresh */
525 }
526} 526}
527 527
528static void resetWideRuns_DocumentView_(iDocumentView *d) { 528static void resetWideRuns_DocumentView_(iDocumentView *d) {