mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-22 22:41:30 +03:00
Browser history: Update history scroll offsets on scroll to fragment.
This commit is contained in:
parent
a43d0cec7a
commit
628fb0ceef
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user