-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
feat: ability to modify autoScroller config options #434
Conversation
…n DragDropContext
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This library makes heavy use of memorization, I imagine something here (likely the new props) is breaking memorization. It should be a pretty easy fix, though it might take some understanding of the library. I'll take a look in the morning (it's 3am here, oops). As for building this package, I great way to test things is with storybook :)
|
Haha no worries, I'm in PST too! I'll look into storybook. Thanks! |
Update: storybook is awesome! I've tested my code with it, but still haven't written any formal tests that would go in the |
@Xhale1 sorry to ping, but just wanted to get an update on this. Was hoping I could get this out of the way quickly. |
Hey, sorry for dropping the ball on this. There were 11 failing tests due to autoScrollOptions being required but not set, just pushed a commit to fix those and now everything passes. There are a few ESLint errors which need to get resolved (working on those now). @100terres we should probably write some more better documentation onsetting up your editor to find ESLint and Typescript errors :) |
No worries, and thanks so much! I really appreciate your working with me on this! |
Alright, I cleaned up the code a bit and, fixed the remaining ESLint errors, and fixed the store ref unexpectedly changing. All tests are passing and the storybook is working great! I think we're good to merge! Just gonna ping @100terres to take a second look just in case and then I'm good to do a release. |
Wahoo! The cleaned up code looks much more elegant. Thanks so much for taking the time to write the unit tests and refactor everything. I really appreciate it. Also I noticed a typo in |
@Xhale1 @100terres just bumping this because looks like the tests are passing and this could be closed soon. Thanks! |
@spectraldoy I'll try to have a look it tonight or tomorrow night (EST)! |
@spectraldoy great job! I'll do a second round of review tomorrow! Thank you for opening this pull request 🚀 |
Thank you @100terres but I only introduced the controls, @Xhale1 really was the one who made it elegant and efficient, and squashed my bugs 😅. I'm glad you like this though, because I really needed it lol. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thank you! |
Following #431, I've made some edits to
DragDropContext
, added anautoScrollOptions
prop that allows the user significantly more control over the behavior of auto-scroll. This prop takes as input an object that follows the following interface (src/state/auto-scroller/fluid-scroller/config/autoscroll-config-types.ts
, adapted fromsrc/state/auto-scroller/fluid-scroller/config.ts
):Requesting this PR be reviewed. Tagging @Xhale1 as they participated in the above-referenced issue.
Notes:
Another TODO I would like to do in the coming days is update theauto-scrolling.md
doc.