Skip to content

Commit

Permalink
fixed scaling on RenderPixi view bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
liabru committed Jul 12, 2014
1 parent 6652bb4 commit c1964e2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/render/RenderPixi.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ var RenderPixi = {};

// reset background state
render.currentBackground = null;

// reset bounds transforms
container.scale.set(1, 1);
container.position.set(0, 0);
};

/**
Expand Down Expand Up @@ -214,7 +218,7 @@ var RenderPixi = {};

// transform the view
container.scale.set(1 / boundsScaleX, 1 / boundsScaleY);
container.position.set(-render.bounds.min.x, -render.bounds.min.y);
container.position.set(-render.bounds.min.x * (1 / boundsScaleX), -render.bounds.min.y * (1 / boundsScaleY))
} else {
constraints = allConstraints;
}
Expand Down

0 comments on commit c1964e2

Please sign in to comment.