Refactor MatrixStack and RenderScope #59

This commit is contained in:
2026-03-25 17:58:08 +01:00
parent 6873f76c43
commit 3d315fa2cc
6 changed files with 8 additions and 31 deletions
@@ -39,7 +39,7 @@ public class Scroll extends Element {
renderScope.enableScissor(padding, padding, width - padding, height - padding);
renderScope.getMatrixStack().push();
renderScope.getMatrixStack().translate(padding, -scroll + padding, 0);
renderScope.getMatrixStack().translate(padding, -scroll + padding);
ElementRenderer.render(children, ctx.elapsed, renderScope,
ctx.mouseX - padding,