From 135a11db35be06763e4b889984b421dcbddca3ee Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sat, 24 Dec 2011 12:49:55 +0000 Subject: [PATCH] Fix scrollbar scroll svn path=/trunk/netsurf/; revision=13341 --- amiga/gui.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/amiga/gui.c b/amiga/gui.c index 8feb8c50f..a0f99c2a1 100755 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -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;