diff options
| author | nyamatongwe <devnull@localhost> | 2010-09-23 20:15:20 +1000 | 
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2010-09-23 20:15:20 +1000 | 
| commit | e612ffd2248bcacfc56bee45f277d110393c7171 (patch) | |
| tree | ccce4f71b1d53a8dee6c487aa8775094dbb53a7e /src | |
| parent | e534f677b047909df92e63c9cad0174b435a955e (diff) | |
| download | scintilla-mirror-e612ffd2248bcacfc56bee45f277d110393c7171.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.cxx | 7 | 
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; | 
