From 61b806d5f3f47ffb4ad7130ad37d4d2256c814c3 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sun, 15 Mar 2009 21:44:03 +0000 Subject: Fix clicking on history items beyone the first page svn path=/trunk/netsurf/; revision=6789 --- amiga/history_local.c | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) (limited to 'amiga/history_local.c') diff --git a/amiga/history_local.c b/amiga/history_local.c index 754726240..3c07fbf22 100755 --- a/amiga/history_local.c +++ b/amiga/history_local.c @@ -195,22 +195,19 @@ bool ami_history_click(struct history_window *hw,uint16 code) width=bbox->Width; height=bbox->Height; - if((x>=0) && (y>=0) && (xbw,history_current,x,y,false); - ami_history_redraw(hw); - ami_do_redraw(hw->bw->window->shared,false); - break; + case SELECTUP: + history_click(hw->bw,history_current,x,y,false); + ami_history_redraw(hw); + ami_do_redraw(hw->bw->window->shared,false); + break; - case MIDDLEUP: - history_click(hw->bw,history_current,x,y,true); - ami_history_redraw(hw); - break; + case MIDDLEUP: + history_click(hw->bw,history_current,x,y,true); + ami_history_redraw(hw); + break; - } } return true; -- cgit v1.2.3