Skip to content

Commit 1e8fcc0

Browse files
authored
Merge pull request phaserjs#4761 from rexrainbow/rendertexture-enhancement
Update display-origin when resizing
2 parents b704fdd + 6deec2c commit 1e8fcc0

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/gameobjects/rendertexture/RenderTexture.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,16 @@ var RenderTexture = new Class({
400400
this.frame.setSize(width, height, this.frame.cutX, this.frame.cutY);
401401
}
402402

403+
this.updateDisplayOrigin();
404+
405+
var input = this.input;
406+
407+
if (input && !input.customHitArea)
408+
{
409+
input.hitArea.width = width;
410+
input.hitArea.height = height;
411+
}
412+
403413
return this;
404414
},
405415

0 commit comments

Comments
 (0)