diff --git a/es-core/src/components/primary/CarouselComponent.h b/es-core/src/components/primary/CarouselComponent.h index 64d07657e..0c80d3685 100644 --- a/es-core/src/components/primary/CarouselComponent.h +++ b/es-core/src/components/primary/CarouselComponent.h @@ -1261,7 +1261,7 @@ void CarouselComponent::applyTheme(const std::shared_ptr& theme, if (mType == CarouselType::HORIZONTAL || mType == CarouselType::VERTICAL) { if (elem->has("selectedItemMargins")) { const glm::vec2 selectedItemMargins { - glm::clamp(elem->get("selectedItemMargins"), 0.0f, 1.0f)}; + glm::clamp(elem->get("selectedItemMargins"), -1.0f, 1.0f)}; if (mType == CarouselType::HORIZONTAL) mSelectedItemMargins = selectedItemMargins * Renderer::getScreenWidth(); else