|
@@ -203,8 +203,9 @@ class Style extends domkit.CssStyle {
|
|
}
|
|
}
|
|
|
|
|
|
function lookupRec( obj : h2d.Object, e : hxd.Event ) {
|
|
function lookupRec( obj : h2d.Object, e : hxd.Event ) {
|
|
- for( s in obj ) {
|
|
|
|
- if( lookupRec(s, e) )
|
|
|
|
|
|
+ var ch = @:privateAccess obj.children;
|
|
|
|
+ for( i in 0...ch.length ) {
|
|
|
|
+ if( lookupRec(ch[ch.length-1-i], e) )
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
if( obj.dom == null )
|
|
if( obj.dom == null )
|
|
@@ -212,6 +213,9 @@ class Style extends domkit.CssStyle {
|
|
var b = obj.getBounds();
|
|
var b = obj.getBounds();
|
|
if( !b.contains(new h2d.col.Point(e.relX,e.relY)) )
|
|
if( !b.contains(new h2d.col.Point(e.relX,e.relY)) )
|
|
return false;
|
|
return false;
|
|
|
|
+ var fl = Std.downcast(obj, h2d.Flow);
|
|
|
|
+ if( fl != null && fl.backgroundTile == null && fl.interactive == null )
|
|
|
|
+ return false;
|
|
setPreview(obj);
|
|
setPreview(obj);
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|