Set history scroll offsets

svn path=/trunk/netsurf/; revision=6815
This commit is contained in:
Chris Young 2009-03-22 00:12:12 +00:00
parent 3a0b151b5b
commit c9fc91c6e4
1 changed files with 6 additions and 1 deletions

View File

@ -2914,6 +2914,11 @@ void ami_scroller_hook(struct Hook *hook,Object *object,struct IntuiMessage *msg
{
case OID_HSCROLL:
case OID_VSCROLL:
gui_window_get_scroll(gwin->bw->window,
&gwin->bw->window->scrollx,&gwin->bw->window->scrolly);
history_set_current_scroll(gwin->bw->history,
gwin->bw->window->scrollx,gwin->bw->window->scrolly);
if(!option_faster_scroll)
gwin->redraw_required = true;
else ami_do_redraw(gwin,true);