Merge pull request #6145 from rexrainbow/update-hitarea-when-settexture

Update hitarea when changing frame
This commit is contained in:
Richard Davey 2022-06-17 12:22:39 +01:00 committed by GitHub
commit 3974f97994
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -125,6 +125,14 @@ var Size = {
this.width = frame.realWidth;
this.height = frame.realHeight;
var input = this.input;
if (input && !input.customHitArea)
{
input.hitArea.width = this.width;
input.hitArea.height = this.height;
}
return this;
},