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 32cbaca9..9d60f86f 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -1651,7 +1651,7 @@ static void checkResponse_DocumentWidget_(iDocumentWidget *d) {
1651 break; 1651 break;
1652 } 1652 }
1653 case categorySuccess_GmStatusCode: 1653 case categorySuccess_GmStatusCode:
1654 reset_SmoothScroll(&d->scrollY); 1654 //reset_SmoothScroll(&d->scrollY);
1655 reset_GmDocument(d->doc); /* new content incoming */ 1655 reset_GmDocument(d->doc); /* new content incoming */
1656 delete_Gempub(d->sourceGempub); 1656 delete_Gempub(d->sourceGempub);
1657 d->sourceGempub = NULL; 1657 d->sourceGempub = NULL;
@@ -2307,7 +2307,7 @@ static iBool handleCommand_DocumentWidget_(iDocumentWidget *d, const char *cmd)
2307 } 2307 }
2308 updateFetchProgress_DocumentWidget_(d); 2308 updateFetchProgress_DocumentWidget_(d);
2309 checkResponse_DocumentWidget_(d); 2309 checkResponse_DocumentWidget_(d);
2310 if (category_GmStatusCode(status_GmRequest(d->request)) == success_GmStatusCode) { 2310 if (category_GmStatusCode(status_GmRequest(d->request)) == categorySuccess_GmStatusCode) {
2311 init_Anim(&d->scrollY.pos, d->initNormScrollY * size_GmDocument(d->doc).y); /* TODO: unless user already scrolled! */ 2311 init_Anim(&d->scrollY.pos, d->initNormScrollY * size_GmDocument(d->doc).y); /* TODO: unless user already scrolled! */
2312 } 2312 }
2313 d->state = ready_RequestState; 2313 d->state = ready_RequestState;