summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2017-09-14 19:13:44 (GMT)
committer Michael Drake <tlsa@netsurf-browser.org>2017-09-18 22:18:44 (GMT)
commitf211b6c89aabb1174bf5f1966f91c5d883245fd2 (patch)
treef95977b9dd97b3956258bd0fe64adeb739aa03ae
parent89dd127a80951dcc7105c04d0e207c1561c5d8bf (diff)
downloadnetsurf-f211b6c89aabb1174bf5f1966f91c5d883245fd2.tar.gz
netsurf-f211b6c89aabb1174bf5f1966f91c5d883245fd2.tar.bz2
Treeview: Only let search textarea consume mouse if not dragging.
-rw-r--r--desktop/treeview.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/desktop/treeview.c b/desktop/treeview.c
index 717c90c..8021782 100644
--- a/desktop/treeview.c
+++ b/desktop/treeview.c
@@ -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)) {