don't let invisible objects prevent dragging (for example: currently
not shown combobox menus)
This commit is contained in:
parent
62bdd89fd7
commit
7ae6dd709a
1 changed files with 3 additions and 0 deletions
|
@ -148,6 +148,9 @@ int fgPopup::checkHit(int button, int updown, int x, int y)
|
||||||
|
|
||||||
int fgPopup::getHitObjects(puObject *object, int x, int y)
|
int fgPopup::getHitObjects(puObject *object, int x, int y)
|
||||||
{
|
{
|
||||||
|
if (!object->isVisible())
|
||||||
|
return 0;
|
||||||
|
|
||||||
int type = 0;
|
int type = 0;
|
||||||
if(object->getType() & PUCLASS_GROUP)
|
if(object->getType() & PUCLASS_GROUP)
|
||||||
for (puObject *obj = ((puGroup *)object)->getFirstChild();
|
for (puObject *obj = ((puGroup *)object)->getFirstChild();
|
||||||
|
|
Loading…
Reference in a new issue