mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-03 19:31:55 +03:00
Treeview: Only let search textarea consume mouse if not dragging.
This commit is contained in:
parent
89dd127a80
commit
f211b6c89a
@ -4509,7 +4509,9 @@ treeview_mouse_action(treeview *tree, browser_mouse_state mouse, int x, int y)
|
||||
textarea_mouse_action(tree->edit.textarea, mouse,
|
||||
x - tree->edit.x, y - tree->edit.y);
|
||||
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) {
|
||||
tree->search.active = true;
|
||||
if (treeview_clear_selection(tree, &r)) {
|
||||
|
Loading…
Reference in New Issue
Block a user