Fix scrollbar scroll

svn path=/trunk/netsurf/; revision=13341
This commit is contained in:
Chris Young 2011-12-24 12:49:55 +00:00
parent 075c18b27d
commit 135a11db35
1 changed files with 7 additions and 0 deletions

View File

@ -3306,6 +3306,9 @@ void ami_do_redraw(struct gui_window_2 *g)
ami_get_hscroll_pos(g, (ULONG *)&hcurrent);
ami_get_vscroll_pos(g, (ULONG *)&vcurrent);
g->bw->window->scrollx = hcurrent;
g->bw->window->scrolly = vcurrent;
c = g->bw->current_content;
width=bbox->Width;
@ -3864,6 +3867,10 @@ void ami_scroller_hook(struct Hook *hook,Object *object,struct IntuiMessage *msg
case GID_HSCROLL:
case OID_HSCROLL:
case OID_VSCROLL:
gui_window_get_scroll(gwin->bw->window,
&gwin->bw->window->scrollx,
&gwin->bw->window->scrolly);
if(option_faster_scroll == true) gwin->redraw_scroll = true;
else gwin->redraw_scroll = false;