Treeview: Only let search textarea consume mouse if not dragging.

This commit is contained in:
Michael Drake 2017-09-14 20:13:44 +01:00
parent 89dd127a80
commit f211b6c89a

View File

@ -4509,7 +4509,9 @@ treeview_mouse_action(treeview *tree, browser_mouse_state mouse, int x, int y)
textarea_mouse_action(tree->edit.textarea, mouse, textarea_mouse_action(tree->edit.textarea, mouse,
x - tree->edit.x, y - tree->edit.y); x - tree->edit.x, y - tree->edit.y);
return; return;
} else if (tree->drag.type == TV_DRAG_SEARCH || y < search_height) { } else if (tree->drag.type == TV_DRAG_SEARCH ||
(y < search_height &&
tree->drag.type == TV_DRAG_NONE)) {
if (tree->search.active == false) { if (tree->search.active == false) {
tree->search.active = true; tree->search.active = true;
if (treeview_clear_selection(tree, &r)) { if (treeview_clear_selection(tree, &r)) {