Skip to content

Conversation

@CySSoO
Copy link
Contributor

@CySSoO CySSoO commented Jan 29, 2026

Motivation

  • Prevent the Heroe carousel from computing invalid translateX offsets when slide or carousel sizes are zero/NaN which can break click/touch navigation.

Description

  • Add guards in initHeroeCarousels updateSlides() in views/js/everblock.js to early-return when slideWidth or carouselWidth are falsy and to validate translateX with isFinite, falling back to translateX(0px).

Testing

  • No automated tests were run for this change.

Codex Task

@CySSoO CySSoO merged commit f80c80b into master Jan 29, 2026
0 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants