Fix globalCompositeOperation + cached hit detections. close #759

This commit is contained in:
Anton Lavrenov
2019-10-10 15:52:00 -05:00
parent 7909283e3d
commit 80c674eb1f
8 changed files with 78 additions and 20 deletions

View File

@@ -419,7 +419,9 @@ export abstract class Container<ChildType extends Node> extends Node<
}
var hasComposition =
this.globalCompositeOperation() !== 'source-over' && !skipComposition;
this.globalCompositeOperation() !== 'source-over' &&
!skipComposition &&
drawMethod === 'drawScene';
if (hasComposition && layer) {
context.save();
context._applyGlobalCompositeOperation(this);