From e2bcc5f5eb67815b2c9ec64357c4976e18080c48 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 27 Mar 2013 11:43:10 +0000 Subject: Tidy up pointer beyond scrollbars. --- desktop/textarea.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'desktop/textarea.c') diff --git a/desktop/textarea.c b/desktop/textarea.c index 75b0416e9..f53d435a5 100644 --- a/desktop/textarea.c +++ b/desktop/textarea.c @@ -2627,6 +2627,13 @@ textarea_mouse_status textarea_mouse_action(struct textarea *ta, return status; } + /* Might be outside textarea, and not dragging */ + if ((x >= ta->vis_width || y >= ta->vis_height) && + ta->drag_info.type == TEXTAREA_DRAG_NONE && + ta->flags & TEXTAREA_MULTILINE) { + return status; + } + status |= TEXTAREA_MOUSE_EDITOR; /* Mouse action is textarea's responsibility */ -- cgit v1.2.3