From: mfranz Date: Sun, 11 Jan 2009 00:28:25 +0000 (+0000) Subject: puaLargeInput (textbox) aren't draggable areas X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cc0b7e0076d2f137f7a3bef9e95d7cf0d663c998;p=flightgear.git puaLargeInput (textbox) aren't draggable areas --- diff --git a/src/GUI/dialog.cxx b/src/GUI/dialog.cxx index 8ae6d2ebd..0c45133b2 100644 --- a/src/GUI/dialog.cxx +++ b/src/GUI/dialog.cxx @@ -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);