mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-26 20:32:05 +03:00
Stop empty mouse events being reported, remove spurious extra button presses
svn path=/trunk/netsurf/; revision=11091
This commit is contained in:
parent
cef10de11b
commit
00a18370e0
14
amiga/tree.c
14
amiga/tree.c
@ -764,11 +764,6 @@ BOOL ami_tree_event(struct treeview_window *twin)
|
||||
if(twin->drag_y == 0) twin->drag_y = y;
|
||||
ami_tree_drag_icon_show(twin);
|
||||
}
|
||||
else
|
||||
{
|
||||
tree_mouse_action(twin->tree,
|
||||
twin->mouse_state | twin->key_state, x, y);
|
||||
}
|
||||
}
|
||||
twin->lastclick.tv_sec = 0;
|
||||
twin->lastclick.tv_usec = 0;
|
||||
@ -795,8 +790,7 @@ BOOL ami_tree_event(struct treeview_window *twin)
|
||||
twin->mouse_state = BROWSER_MOUSE_PRESS_2;
|
||||
break;
|
||||
}
|
||||
tree_mouse_action(twin->tree,
|
||||
twin->mouse_state | twin->key_state, x, y);
|
||||
//**
|
||||
}
|
||||
|
||||
if(x < xs) x = xs;
|
||||
@ -875,6 +869,12 @@ BOOL ami_tree_event(struct treeview_window *twin)
|
||||
twin->drag_x = 0;
|
||||
twin->drag_y = 0;
|
||||
break;
|
||||
|
||||
case SELECTDOWN:
|
||||
case MIDDLEDOWN:
|
||||
tree_mouse_action(twin->tree,
|
||||
twin->mouse_state | twin->key_state, x, y);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user