mirror of
https://github.com/scratchfoundation/scratch-flash.git
synced 2024-12-04 21:21:06 -05:00
Fixed context menus showing for hidden lists on the stage
This commit is contained in:
parent
05e0260780
commit
c4860a9aef
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,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