diff --git a/Nez.Portable/UI/Containers/ScrollPane.cs b/Nez.Portable/UI/Containers/ScrollPane.cs index 753a5d742..0dd6642b6 100644 --- a/Nez.Portable/UI/Containers/ScrollPane.cs +++ b/Nez.Portable/UI/Containers/ScrollPane.cs @@ -1214,7 +1214,7 @@ public override void Draw(Batcher batcher, float parentAlpha) // setup transform for this group. if (transform) - ApplyTransform(batcher, ComputeTransform()); + ApplyTransform(batcher, ComputeTransform() * _stage.Camera.TransformMatrix); if (_scrollX) _hKnobBounds.X = _hScrollBounds.X + @@ -1321,7 +1321,7 @@ public override void Draw(Batcher batcher, float parentAlpha) public override void DebugRender(Batcher batcher) { if (transform) - ApplyTransform(batcher, ComputeTransform()); + ApplyTransform(batcher, ComputeTransform() * _stage.Camera.TransformMatrix); var scissor = ScissorStack.CalculateScissors(_stage?.Camera, batcher.TransformMatrix, _widgetAreaBounds);