From 881b602cb47705b65235d33ae072ab9ccf5d18d9 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Mon, 5 Sep 2022 00:30:19 +0200 Subject: [PATCH] Fixed a rendering issue in ScrollableContainer. --- es-core/src/components/ScrollableContainer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/es-core/src/components/ScrollableContainer.cpp b/es-core/src/components/ScrollableContainer.cpp index c356803ac..10557e6b9 100644 --- a/es-core/src/components/ScrollableContainer.cpp +++ b/es-core/src/components/ScrollableContainer.cpp @@ -236,7 +236,7 @@ void ScrollableContainer::render(const glm::mat4& parentTrans) mRenderer->pushClipRect(clipPos, clipDim); - trans = glm::translate(trans, -glm::vec3 {mScrollPos.x, mScrollPos.y, 0.0f}); + trans = glm::translate(trans, glm::round(-glm::vec3 {mScrollPos.x, mScrollPos.y, 0.0f})); mRenderer->setMatrix(trans); if (Settings::getInstance()->getBool("DebugText"))