Skip to content

refactor(slider): separate layout and shared container width - #23

Merged
matcane merged 2 commits into
mainfrom
refactor/slider-width
Oct 2, 2026
Merged

matcane merged 2 commits into
mainfrom
refactor/slider-width

Conversation

@matcane

@matcane matcane commented Oct 2, 2026

Copy link
Copy Markdown
Owner

What

Rename measuredWidth to layoutContainerWidth and containerWidth to
sharedContainerWidth. Mount BeforeClip only after layout.

Why

A React render and a worklet cannot share one variable. The old names
did not say which copy is for layout and which is for the UI thread.

Test plan

  • existing tests pass
  • example app: drag still follows the split

@matcane matcane self-assigned this Oct 2, 2026
@matcane
matcane merged commit f83d3a0 into main Oct 2, 2026
1 check passed
@matcane
matcane deleted the refactor/slider-width branch October 2, 2026 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant