mirror of
https://github.com/scratchfoundation/scratch-flash.git
synced 2024-12-04 21:21:06 -05:00
Merge pull request #193 from nathan/hidden-context-menu
Fixed context menus showing for hidden lists on the stage
This commit is contained in:
commit
09b32a2dd6
1 changed files with 1 additions and 1 deletions
|
@ -143,7 +143,7 @@ public class GestureHandler {
|
|||
private function findTargetFor(property:String, obj:*, x:int, y:int):DisplayObject {
|
||||
// Return the innermost child of obj that contains the given (global) point
|
||||
// and implements the menu() method.
|
||||
if (!obj.hitTestPoint(x, y, true)) return null;
|
||||
if (!obj.visible || !obj.hitTestPoint(x, y, true)) return null;
|
||||
if (obj is DisplayObjectContainer) {
|
||||
for (var i:int = obj.numChildren - 1; i >= 0; i--) {
|
||||
var found:DisplayObject = findTargetFor(property, obj.getChildAt(i), x, y);
|
||||
|
|
Loading…
Reference in a new issue