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

autoScroll #106

Merged
merged 17 commits into from
Sep 27, 2021
Merged

autoScroll #106

merged 17 commits into from
Sep 27, 2021

Conversation

chomosuke
Copy link
Owner

@chomosuke chomosuke commented Sep 24, 2021

Expected behavior:
Once a card is clicked, it's locked, meaning it's y-position will not change.

User scrolling on the left side will unlock any locked card.

deselecting the card also unlock the card (though deselecting shouldn't change a locked card position).

if card grid's size is changed and no card is locked, the "scroll percentage" will be maintained (i.e. if it was at the very top, it'll stay there, if it was at the very bottom, it'll stay there, if it's anything in between, it'll scroll accordingly).

closes #77.

@chomosuke chomosuke self-assigned this Sep 24, 2021
@chomosuke chomosuke added the enhancement New feature or request label Sep 24, 2021
@chomosuke chomosuke added this to the Sprint 2 milestone Sep 24, 2021
web/src/views/Home.tsx Outdated Show resolved Hide resolved
Copy link
Collaborator

@waltervan00 waltervan00 left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Collaborator

@shangzhel shangzhel left a comment

Choose a reason for hiding this comment

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

Some things need explanation.

web/src/AppContext.ts Outdated Show resolved Hide resolved
web/src/views/Home.tsx Show resolved Hide resolved
created 3 function for homeContext: lockCard, unlockCard, unlockCardLater
@chomosuke chomosuke merged commit bfb89f5 into master Sep 27, 2021
@chomosuke chomosuke deleted the richard/autoScroll branch September 27, 2021 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scroll card into view when selected to view detail
4 participants