Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 398670

Summary: splitter - editor on left hand side tracking selection during splitter move (Chrome)
Product: [ECD] Orion Reporter: Susan McCourt <susan>
Component: ClientAssignee: Susan McCourt <susan>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: libingw, Silenio_Quarti
Version: 1.0   
Target Milestone: 2.0 M2   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Susan McCourt CLA 2013-01-21 13:35:50 EST
From bug 398241: 
> When drag splitter, the editor thinks there is a select event. So it is kind of > blinking.
Comment 1 Susan McCourt CLA 2013-01-21 13:38:36 EST
This is visible in the compare page on Chrome.  What's weird is that it doesn't happen in the git status page in the nested compare editors.
Comment 2 Silenio Quarti CLA 2013-01-22 11:03:28 EST
It seems the browser is still performing its selection. I believe the splitter needs to stop the mouse down event in Sppliter._mouseDown to prevent this.


_mouseDown: function(event) {
	if (event.target === this._thumb) {
		return this._thumbDown(event);
	}
	if (this._tracking) {
		return;
	}
	this._node.classList.add("splitTracking"); //$NON-NLS-0$
	this._mainNode.classList.add("panelTracking"); //$NON-NLS-0$
	this._sideNode.classList.add("panelTracking"); //$NON-NLS-0$
	this._tracking = this._mouseMove.bind(this);
	window.addEventListener("mousemove", this._tracking); //$NON-NLS-0$
	lib.stop(event); // ADD THIS LINE
},
Comment 3 Susan McCourt CLA 2013-01-22 11:06:40 EST
thanks, Silenio.  I checked mousemove and forgot mousedown!