-
Notifications
You must be signed in to change notification settings - Fork 734
Infra/generify faded scroll view #1842
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
Conversation
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.
Looks good, I wrote two small comments :)
const FADER_SIZE = 76; | ||
interface Statics { | ||
scrollTo( | ||
y?: number | {x?: number | undefined; y?: number | undefined; animated?: boolean | undefined}, |
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.
Looks like the types are not in the right place here
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.
Not sure what you mean, can you elaborate \ rephrase?
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.
Can the y
key get both number and object?
const showStart = (showStartFader && scrollEnabled && !isScrollAtStart) ?? false; | ||
const showEnd = (showEndFader && scrollEnabled && !isScrollAtEnd) ?? false; |
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.
Why do you need the ?? false
in these two lines?
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.
The default for the Fader
is to be visible, I want it to not be visible unless it's needed.
Description
FadedScrollView - make more generic (I will use this in
Incubator.Dialog
, splitting up in to a few PRs).Look at each commit separately for convenience.
Changelog
None