Conversation
theMasudRana
approved these changes
Feb 24, 2026
justlevine
reviewed
Feb 24, 2026
|
|
||
| ### Bug Fixes | ||
|
|
||
| * enable loop on editor ([fe4566a](https://github.com/rtCamp/carousel-system-interactivity-api/commit/fe4566afcf72e1e663c7eb481a7957d62c2d3365)) |
Collaborator
There was a problem hiding this comment.
Should we update these links to rtcamp/carousel-kit ?
Collaborator
Author
There was a problem hiding this comment.
Yes, I will raise a separate PR for this.
justlevine
approved these changes
Feb 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
In the block editor, clicking in the gap between slides caused two distinct bugs:
The issue did not reproduce on the frontend.
Root Cause
Embla ships with three built-in watchers that are all enabled by default:
watchSlidesMutationObserveron.embla__container.embla__container; Embla detected these as slide additions/removals and calledreInit()watchResizeResizeObserveron the viewportreInit()watchDragThe primary culprit was
watchSlides: afterreInit(), Embla recalculated scroll snaps with Gutenberg's UI node counted as an extra slide, producing wrong transforms and snap positions.Fix
Disable all three watchers in the editor's Embla initialisation (
viewport/edit.tsx):Also fixed a pre-existing ESLint warning (
react-hooks/exhaustive-deps):emblaRef.currentwas read inside the effect cleanup function. It is now captured into a stableviewportElvariable at effect mount time.