summaryrefslogtreecommitdiff
path: root/desktop/textarea.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-03-27 11:43:10 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2013-03-27 11:43:10 +0000
commite2bcc5f5eb67815b2c9ec64357c4976e18080c48 (patch)
treee9d3b98789c8b830c17e01c35b36f2b9b16302dd /desktop/textarea.c
parent9a73da63473187502b7ff129645dd1fd731cafac (diff)
downloadnetsurf-e2bcc5f5eb67815b2c9ec64357c4976e18080c48.tar.gz
netsurf-e2bcc5f5eb67815b2c9ec64357c4976e18080c48.tar.bz2
Tidy up pointer beyond scrollbars.
Diffstat (limited to 'desktop/textarea.c')
-rw-r--r--desktop/textarea.c7
1 files changed, 7 insertions, 0 deletions
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 */