Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scroll Bug #918

Open
ghost opened this issue Nov 14, 2023 · 3 comments
Open

Scroll Bug #918

ghost opened this issue Nov 14, 2023 · 3 comments

Comments

@ghost
Copy link

ghost commented Nov 14, 2023

Description
The bug occurs when reloading the page on the timeline. It makes itself noticeable when you then try to scroll thruough the timeline (with your mouse or dragging). The days start scrolling completely random (backwards and really fast) while the single cells dont even change.

Reproduce:
Just implement a calendar with a few groups and events, reload the page in the browser and try scrolling.

There is no speacial custom code involoved in this, if you feel like there might be some unexpected changes we have made that lead to such behavior please respond.

Library Version
Version : 0.28.0

  • OS: Windows 10*
  • Browser: chrome
  • Version 119
@PauloMesquitaSP
Copy link

PauloMesquitaSP commented Jan 14, 2024

Did you find any workaround on this? No matter the way I move the time always go backwards and super fast. If I interact with an item first it works normally

Update => I found a workaround, I'm rendering my timeline only when my items and groups are ready and it works fine:

{items.length > 0 && groups.length > 0  ?  (
<Timeline ....
) : null}

@ghost
Copy link
Author

ghost commented Feb 5, 2024

@PauloMesquitaSP Hello, thank you for the response, i haven't found a workaround myself, but i will try yours.

@sebastian-unity3d
Copy link

There is an issue with the library, where the timeline does not function properly, if no groups are present - therefore, I would suggest to always supply a placeholder group, if the array of groups is empty, e.g.:
const timelineGroups = groups && groups.length > 0) ? groups : [{ id: 0, title: 'There are no groups' }];

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

No branches or pull requests

2 participants