aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2010-09-23 20:15:20 +1000
committernyamatongwe <unknown>2010-09-23 20:15:20 +1000
commit228fcb30c6b21ef2756a07a3eaf34f6371e80a39 (patch)
treea05fbd63b41eef325400b5595386af1620b98acb /src
parent58053e3f7114cf1295973b160d6b7e6ebcb2dfae (diff)
downloadscintilla-mirror-228fcb30c6b21ef2756a07a3eaf34f6371e80a39.tar.gz
Fix for bug #3073481, in MouseLeave set ptMouseLast to (-1,-1) so will not send
dwell start on timer. Send dwell end for mouse leave.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 504cf5446..762156c23 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -5833,6 +5833,10 @@ void Editor::DwellEnd(bool mouseMoved) {
void Editor::MouseLeave() {
SetHotSpotRange(NULL);
+ if (!HaveMouseCapture()) {
+ ptMouseLast = Point(-1,-1);
+ DwellEnd(true);
+ }
}
static bool AllowVirtualSpace(int virtualSpaceOptions, bool rectangular) {
@@ -6221,7 +6225,8 @@ void Editor::Tick() {
}
if ((dwellDelay < SC_TIME_FOREVER) &&
(ticksToDwell > 0) &&
- (!HaveMouseCapture())) {
+ (!HaveMouseCapture()) &&
+ (ptMouseLast.y >= 0)) {
ticksToDwell -= timer.tickSize;
if (ticksToDwell <= 0) {
dwelling = true;