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

NP-24 Restrict sidebar auto-scrolling #691

Merged
merged 2 commits into from
Oct 2, 2023
Merged

NP-24 Restrict sidebar auto-scrolling #691

merged 2 commits into from
Oct 2, 2023

Conversation

Peytonbarre
Copy link
Contributor

Overview

Fixes NP-24. Previously, when a course was dragged to the bottom of the planner screen the sidebar would scroll as well. This is because the way DndContext is defined. This fix restricts the sidebar from scrolling when a course is being dragged, so only the planner component can auto-scroll.

What Changed

Added a courseDragged prop to sidebar that determines whether or not is should be able to scroll. If a course is being dragged, then y-overflow is hidden on the sidebar object.

Other Notes

This creates a small visual issue where the sidebar must disappear while the scrolling is restricted. I couldn't find a solution to this using tailwind, but it isn't that noticeable of an issue.

@github-actions
Copy link

@github-actions
Copy link

Copy link
Member

@cubetastic33 cubetastic33 left a comment

Choose a reason for hiding this comment

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

lgtm

@akevinge
Copy link
Member

akevinge commented Oct 2, 2023

@cubetastic33 I know I was ambiguous about this before, but let's do just reviewer merge for simplicity sake.

@akevinge akevinge merged commit fe27545 into develop Oct 2, 2023
5 checks passed
@akevinge akevinge deleted the NP-24 branch October 2, 2023 15:21
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