Skip to content

Conversation

@thlehmann-ionos
Copy link

@thlehmann-ionos thlehmann-ionos commented Apr 24, 2025

== Cause

The scroller animation did not start because the animation-duration
property had the value 0 initially.

This was caused by el.scrollWidth being 0 initially because there
were no elements in items, which was caused by PromptSelector loading
the items asynchroneously on mount.

== Fix

The reactive expression now incorporates the state of items for
recalculation.

== Cause

The scroller animation did not start because the `animation-duration`
property had the value 0 initially.

This was caused by `el.scrollWidth` being 0 initially because there
were no elements in `items`, which was caused by PromptSelector loading
the items asynchroneously on mount.

== Fix

The reactive expression now incorporates the state of `items` for
recalculation.
@thlehmann-ionos thlehmann-ionos changed the base branch from main to ionos-dev April 24, 2025 07:35
@thlehmann-ionos
Copy link
Author

fyi @bromiesTM

Copy link

@bromiesTM bromiesTM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More types would be great but review ok nevertheless

@thlehmann-ionos
Copy link
Author

Done @bromiesTM

@thlehmann-ionos thlehmann-ionos merged commit 1e26234 into ionos-dev Apr 24, 2025
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.

3 participants