diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-03-27 11:43:10 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-03-27 11:43:10 +0000 |
commit | e2bcc5f5eb67815b2c9ec64357c4976e18080c48 (patch) | |
tree | e9d3b98789c8b830c17e01c35b36f2b9b16302dd /desktop | |
parent | 9a73da63473187502b7ff129645dd1fd731cafac (diff) | |
download | netsurf-e2bcc5f5eb67815b2c9ec64357c4976e18080c48.tar.gz netsurf-e2bcc5f5eb67815b2c9ec64357c4976e18080c48.tar.bz2 |
Tidy up pointer beyond scrollbars.
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/textarea.c | 7 |
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 */ |