From 628fb0ceeff58573a3e094471dda7f07230df3f5 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 23 Sep 2017 16:02:38 +0100 Subject: [PATCH] Browser history: Update history scroll offsets on scroll to fragment. --- desktop/browser.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/desktop/browser.c b/desktop/browser.c index c8768b949..b82d8eff3 100644 --- a/desktop/browser.c +++ b/desktop/browser.c @@ -2386,6 +2386,11 @@ static bool frag_scroll(struct browser_window *bw) rect.x1 = rect.x0; rect.y1 = rect.y0; if (browser_window_set_scroll(bw, &rect) == NSERROR_OK) { + if (bw->current_content != NULL && + bw->history != NULL && + bw->history->current != NULL) { + browser_window_history_update(bw, bw->current_content); + } return true; } return false;