Skip to content

fix(Virtual): finish active scroll when duration becomes zero - #85

Open
Marshallup wants to merge 1 commit into
solid-tv:mainfrom
Marshallup:fix/virtual-zero-duration
Open

Marshallup wants to merge 1 commit into
solid-tv:mainfrom
Marshallup:fix/virtual-zero-duration

Conversation

@Marshallup

Copy link
Copy Markdown

Summary

Changing a reactive animationSettings.duration to 0 while
VirtualRow or VirtualColumn is scrolling leaves the existing
animation running with its original settings.

This PR stops that animation and immediately places the list at
its target position. Both scheduled and running controllers are
handled.

Tests

Added DOM and WebGL regression tests for both axes, including
disabling animation before the first frame and during scrolling.
Focus, subsequent navigation, and re-enabling animations are covered.

All 6 new cases fail without the fix and pass with it.

  • pnpm test: 757 passed, 13 skipped.
  • pnpm test:webgl: 23 passed.
  • pnpm build and pnpm lint pass; existing lint warnings remain.

This branch has not been deployed

No deployments
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