summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {