mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-04-10 19:15:13 +00:00
Fixed an issue where the selectedItemOffset property did not work correctly for carousels with a single item
This commit is contained in:
parent
3510a09d83
commit
4c665f5f1d
|
|
@ -948,7 +948,8 @@ template <typename T> void CarouselComponent<T>::render(const glm::mat4& parentT
|
|||
|
||||
glm::mat4 itemTrans {carouselTrans};
|
||||
if (singleEntry)
|
||||
itemTrans = glm::translate(carouselTrans, glm::vec3 {xOff, yOff, 0.0f});
|
||||
itemTrans = glm::translate(carouselTrans, glm::vec3 {xOff + itemHorizontalOffset,
|
||||
yOff + itemVerticallOffset, 0.0f});
|
||||
else
|
||||
itemTrans = glm::translate(
|
||||
itemTrans,
|
||||
|
|
|
|||
Loading…
Reference in a new issue