mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-03-03 13:51:46 +03:00
only perform navigation actions on release of button 1
svn path=/trunk/netsurf/; revision=6658
This commit is contained in:
parent
cdd940897c
commit
460460b493
@ -307,8 +307,10 @@ fb_add_window_widget(struct gui_window *g,
|
|||||||
static int
|
static int
|
||||||
fb_widget_leftarrow_click(struct gui_window *g, browser_mouse_state st, int x, int y)
|
fb_widget_leftarrow_click(struct gui_window *g, browser_mouse_state st, int x, int y)
|
||||||
{
|
{
|
||||||
if (history_back_available(g->bw->history))
|
if (st == BROWSER_MOUSE_CLICK_1) {
|
||||||
history_back(g->bw, g->bw->history);
|
if (history_back_available(g->bw->history))
|
||||||
|
history_back(g->bw, g->bw->history);
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -317,8 +319,10 @@ fb_widget_leftarrow_click(struct gui_window *g, browser_mouse_state st, int x, i
|
|||||||
static int
|
static int
|
||||||
fb_widget_rightarrow_click(struct gui_window *g, browser_mouse_state st, int x, int y)
|
fb_widget_rightarrow_click(struct gui_window *g, browser_mouse_state st, int x, int y)
|
||||||
{
|
{
|
||||||
if (history_forward_available(g->bw->history))
|
if (st == BROWSER_MOUSE_CLICK_1) {
|
||||||
history_forward(g->bw, g->bw->history);
|
if (history_forward_available(g->bw->history))
|
||||||
|
history_forward(g->bw, g->bw->history);
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user