mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-06 07:45:50 +02:00
Bug 405735 - [visualizer] Using context menu prevents next selection
Change-Id: Iedf7ddedcd5a714bbd7a81650adacb4a301225b8 Reviewed-on: https://git.eclipse.org/r/12237 Reviewed-by: William Swanson <traveler@tilera.com> IP-Clean: William Swanson <traveler@tilera.com> Tested-by: William Swanson <traveler@tilera.com>
This commit is contained in:
parent
12b229dec0
commit
cadc92f7b6
1 changed files with 3 additions and 1 deletions
|
@ -7,6 +7,7 @@
|
||||||
*
|
*
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* William R. Swanson (Tilera Corporation) - initial API and implementation
|
* William R. Swanson (Tilera Corporation) - initial API and implementation
|
||||||
|
* Marc Dumais (Ericsson) : Bug 405735
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.cdt.visualizer.ui.util;
|
package org.eclipse.cdt.visualizer.ui.util;
|
||||||
|
@ -250,7 +251,8 @@ public class MouseMonitor
|
||||||
|
|
||||||
/** Invoked when mouse button is pressed */
|
/** Invoked when mouse button is pressed */
|
||||||
protected void mouseDownHandler(int button, int x, int y, int keys) {
|
protected void mouseDownHandler(int button, int x, int y, int keys) {
|
||||||
if (! m_mouseDown) {
|
// Drag not applicable to right-click
|
||||||
|
if (! m_mouseDown && button != RIGHT_BUTTON) {
|
||||||
m_mouseDown = true;
|
m_mouseDown = true;
|
||||||
m_mouseDownPoint.x = x;
|
m_mouseDownPoint.x = x;
|
||||||
m_mouseDownPoint.y = y;
|
m_mouseDownPoint.y = y;
|
||||||
|
|
Loading…
Add table
Reference in a new issue