We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bcbd5d commit 298deadCopy full SHA for 298dead
1 file changed
packages/webgal/src/Core/controller/stage/pixi/PixiController.ts
@@ -73,16 +73,16 @@ export default class PixiStage {
73
const targetPosition = target.position;
74
if (target.scale) Object.assign(targetScale, source.scale);
75
if (target.position) Object.assign(targetPosition, source.position);
76
+ Object.assign(target, source);
77
+ target.scale = targetScale;
78
+ target.position = targetPosition;
79
if (convertAlpha) {
80
const sourceAlpha = source.alpha;
81
if (sourceAlpha !== undefined) {
- source.alpha = 1;
- (source as any).alphaFilterVal = sourceAlpha;
82
+ target.alpha = 1;
83
+ (target as any).alphaFilterVal = sourceAlpha;
84
}
85
- Object.assign(target, source);
- target.scale = targetScale;
- target.position = targetPosition;
86
87
88
/**
0 commit comments