Treeview: Ignore mouse leaving the treeview window.
This commit is contained in:
parent
d2534e0e74
commit
8f0f44e3d1
|
@ -4582,6 +4582,11 @@ treeview_mouse_action(treeview *tree, browser_mouse_state mouse, int x, int y)
|
|||
assert(tree != NULL);
|
||||
assert(tree->root != NULL);
|
||||
|
||||
/* Not interested in whether mouse leaves window. */
|
||||
if (mouse == BROWSER_MOUSE_LEAVE) {
|
||||
return;
|
||||
}
|
||||
|
||||
/* Handle mouse drag captured by textarea */
|
||||
if (tree->drag.type == TV_DRAG_TEXTAREA) {
|
||||
textarea_mouse_action(tree->edit.textarea, mouse,
|
||||
|
|
Loading…
Reference in New Issue