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

[WEB-1140] chore: Gantt pragmatic dnd #4390

Merged
merged 3 commits into from
May 8, 2024

Conversation

rahulramesha
Copy link
Collaborator

WEB-1140
This PR replaces the @hello-pangea-dnd with the new Pragmatic-dnd for Gantt chart.

Screen.Recording.2024-05-07.at.18.32.46.mov

const sourceElement = document.getElementById(sourceElementId);
sourceElement?.classList?.add(shouldHighLightWithLine ? HIGHLIGHT_WITH_LINE : HIGHLIGHT_CLASS);
if (shouldScrollIntoView && sourceElement)
await scrollIntoView(sourceElement, { behavior: "smooth", block: "center", duration: 1500 });
Copy link
Collaborator

Choose a reason for hiding this comment

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

Isn't 1500ms 2 long for a scroll?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

1500 because, if the list is very long, the duration is high so that it scrolls to the position and does not time out in between

@SatishGandham SatishGandham merged commit 13e6a67 into preview May 8, 2024
10 of 11 checks passed
@SatishGandham SatishGandham deleted the chore-gantt-pragmatic-dnd branch May 8, 2024 08:09
@sriramveeraghanta sriramveeraghanta added this to the v0.20-dev milestone May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants