Fixed an issue where ScrollableContainer would sometimes fade in text that had not been scrolled.

This commit is contained in:
Leon Styhre 2022-10-16 13:51:22 +02:00
parent 221cd89e4a
commit 6599c12554

View file

@ -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()};