mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-11 23:14:13 +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,
|
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)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user