summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2017-09-23 15:02:38 (GMT)
committer Michael Drake <michael.drake@codethink.co.uk>2017-09-23 15:02:38 (GMT)
commit628fb0ceeff58573a3e094471dda7f07230df3f5 (patch)
tree500f44002609180b3fa6db5ca1a43b4b9b3740c9
parenta43d0cec7a1ab98c5264d7881c8d2752f21dc812 (diff)
downloadnetsurf-628fb0ceeff58573a3e094471dda7f07230df3f5.tar.gz
netsurf-628fb0ceeff58573a3e094471dda7f07230df3f5.tar.bz2
Browser history: Update history scroll offsets on scroll to fragment.
-rw-r--r--desktop/browser.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/desktop/browser.c b/desktop/browser.c
index c8768b9..b82d8ef 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;