From 6599c125547eb920c5320d735ce8a2cce1634ac4 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sun, 16 Oct 2022 13:51:22 +0200 Subject: [PATCH] Fixed an issue where ScrollableContainer would sometimes fade in text that had not been scrolled. --- 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 dec2586ed..d8e4fc932 100644 --- a/es-core/src/components/ScrollableContainer.cpp +++ b/es-core/src/components/ScrollableContainer.cpp @@ -118,7 +118,7 @@ void ScrollableContainer::update(int deltaTime) if (!isVisible() || mSize == glm::vec2 {0.0f, 0.0f}) return; - const glm::vec2 contentSize {mChildren.front()->getSize()}; + const glm::vec2 contentSize {glm::round(mChildren.front()->getSize())}; float rowModifier {1.0f}; float lineSpacing {mChildren.front()->getLineSpacing()};