Skip to content

Commit

Permalink
Fix update of matrices since scrollRect change (fixes #753)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgranick committed Jul 17, 2015
1 parent e8edfdd commit 895bbf8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions openfl/display/DisplayObjectContainer.hx
Expand Up @@ -669,8 +669,9 @@ class DisplayObjectContainer extends InteractiveObject {

if (matrix != null) {

matrixCache = __worldTransform;
__worldTransform = matrix;
//matrixCache = __worldTransform;
//__worldTransform = matrix;
__updateMatrices (matrix);
__updateChildren (true);

}
Expand All @@ -684,7 +685,8 @@ class DisplayObjectContainer extends InteractiveObject {

if (matrix != null) {

__worldTransform = matrixCache;
//__worldTransform = matrixCache;
__updateMatrices ();
__updateChildren (true);

}
Expand Down

0 comments on commit 895bbf8

Please sign in to comment.