Treeview: Ignore mouse leaving the treeview window.

This commit is contained in:
Michael Drake 2017-09-27 17:47:34 +01:00
parent d2534e0e74
commit 8f0f44e3d1
1 changed files with 5 additions and 0 deletions

View File

@ -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,