diff options
author | Felipe Heidrich <fheidric> | 2004-10-26 19:23:19 +0000 |
---|---|---|
committer | Felipe Heidrich <fheidric> | 2004-10-26 19:23:19 +0000 |
commit | 6319d5fc575265452ee334cf2a2b5c45195dc611 (patch) | |
tree | 8e3514ab4778d1cda5c6c049b1029ae10dba21da /bundles/org.eclipse.swt/Eclipse SWT Custom Widgets | |
parent | 213b8ee993c17f0af53ab8801be021a34ec8bcaa (diff) | |
download | eclipse.platform.swt-6319d5fc575265452ee334cf2a2b5c45195dc611.tar.gz eclipse.platform.swt-6319d5fc575265452ee334cf2a2b5c45195dc611.tar.xz eclipse.platform.swt-6319d5fc575265452ee334cf2a2b5c45195dc611.zip |
*** empty log message ***
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Custom Widgets')
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java index 7811c977ca..1e4b74b976 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java @@ -133,8 +133,8 @@ public class StyledText extends Canvas { Color background = null; // workaround for bug 4791 Color foreground = null; // Clipboard clipboard; - boolean mouseDoubleClick = false; // true=a double click ocurred. Don't do mouse swipe selection. boolean mouseDown = false; + boolean mouseDoubleClick = false; // true=a double click ocurred. Don't do mouse swipe selection. int autoScrollDirection = SWT.NULL; // the direction of autoscrolling (up, down, right, left) int lastTextChangeStart; // cache data of the int lastTextChangeNewLineCount; // last text changing @@ -5025,8 +5025,8 @@ void handleMouseDoubleClick(Event event) { * pressed. */ void handleMouseDown(Event event) { - mouseDoubleClick = false; mouseDown = true; + mouseDoubleClick = false; if ((event.button != 1) || (IS_CARBON && (event.stateMask & SWT.MOD4) != 0)) { return; } @@ -5039,10 +5039,10 @@ void handleMouseDown(Event event) { * during the mouse move. */ void handleMouseMove(Event event) { + if (!mouseDown) return; if ((event.stateMask & SWT.BUTTON1) == 0) { return; } - if (!mouseDown) return; event.y -= topMargin; doMouseLocationChange(event.x, event.y, true); doAutoScroll(event); @@ -5051,8 +5051,8 @@ void handleMouseMove(Event event) { * Autoscrolling ends when the mouse button is released. */ void handleMouseUp(Event event) { - mouseDoubleClick = false; mouseDown = false; + mouseDoubleClick = false; event.y -= topMargin; endAutoScroll(); } |