]> git.mxchange.org Git - flightgear.git/commitdiff
puaLargeInput (textbox) aren't draggable areas
authormfranz <mfranz>
Sun, 11 Jan 2009 00:28:25 +0000 (00:28 +0000)
committerTim Moore <timoore@redhat.com>
Mon, 12 Jan 2009 12:04:14 +0000 (13:04 +0100)
src/GUI/dialog.cxx

index 8ae6d2ebd7897c5f1ec6267a97dbc851109b52df..0c45133b22ceaa7d8707be552e21dd459010d516 100644 (file)
@@ -193,7 +193,7 @@ puObject *fgPopup::getActiveInputField(puObject *object)
 int fgPopup::checkHit(int button, int updown, int x, int y)
 {
     int result = 0;
-    if (updown != PU_DRAG)
+    if (updown != PU_DRAG && !_dragging)
         result = puPopup::checkHit(button, updown, x, y);
 
     if (!_draggable)
@@ -210,8 +210,8 @@ int fgPopup::checkHit(int button, int updown, int x, int y)
             return 0;
 
         int hit = getHitObjects(this, x, y);
-        if (hit & (PUCLASS_BUTTON|PUCLASS_ONESHOT|PUCLASS_INPUT))
-            return result;
+        if (hit & (PUCLASS_BUTTON|PUCLASS_ONESHOT|PUCLASS_INPUT|PUCLASS_LARGEINPUT))
+            return puPopup::checkHit(button, updown, x, y);
 
         getPosition(&_dlgX, &_dlgY);
         getSize(&_dlgW, &_dlgH);