mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-25 05:27:00 +03:00
Fix clicking on history items beyone the first page
svn path=/trunk/netsurf/; revision=6789
This commit is contained in:
parent
eabb5339a3
commit
61b806d5f3
@ -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) && (x<width) && (y<height))
|
||||
switch(code)
|
||||
{
|
||||
switch(code)
|
||||
{
|
||||
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 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;
|
||||
|
Loading…
Reference in New Issue
Block a user