summaryrefslogtreecommitdiff
path: root/amiga/gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'amiga/gui.c')
-rwxr-xr-xamiga/gui.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/amiga/gui.c b/amiga/gui.c
index f5a46a3cb..0dba71e2f 100755
--- a/amiga/gui.c
+++ b/amiga/gui.c
@@ -1337,10 +1337,10 @@ void ami_switch_tab(struct gui_window_2 *gwin,bool redraw)
browser_window_update(gwin->bw,false);
- if((gwin->bw->window->scrollx) || (gwin->bw->window->scrolly))
- {
+// if((gwin->bw->window->scrollx) || (gwin->bw->window->scrolly))
+// {
gui_window_set_scroll(gwin->bw->window,gwin->bw->window->scrollx,gwin->bw->window->scrolly);
- }
+// }
if(gwin->bw->current_content)
gui_window_set_url(gwin->bw->window,gwin->bw->current_content->url);
@@ -2302,6 +2302,9 @@ void gui_window_set_scroll(struct gui_window *g, int sx, int sy)
g->shared->redraw_required = true;
g->shared->redraw_data = NULL;
+
+ g->scrollx = sx;
+ g->scrolly = sy;
}
}