-
Notifications
You must be signed in to change notification settings - Fork 734
Feat/new pan view improve animations #1574
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
src/incubator/panView/index.tsx
Outdated
[dismiss]); | ||
|
||
const shouldDismissY = useCallback((isFinished: boolean) => { | ||
const springBack = useCallback(() => { |
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.
Same here regarding the name...
Also why create a method with a similar name to a prop? Don't you find it confusing?
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.
I do find it confusing, any suggestion?
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.
animateToOrigin
animateToInitialPosition
anything that I can read and make sense without diving into the function implementation (:
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.
animateToOrigin
sounds like a good suggestion to replace animateToStart
:)
But calling the function animateToInitialPosition
and not animateToOrigin
will sound unnatural and forced, don't you think?
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.
animateToOrigin sounds like a good suggestion to replace animateToStart :)
I agree
But calling the function animateToInitialPosition and not animateToOrigin will sound unnatural and forced, don't you think?
Maybe we can have a slight difference in the name, something like animateTargetToOrigin
, returnToOrigin
, resetToOrigin
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.
Done
Description
New PanView - improve animations (using
useHiddenLocation
).Note: looking at each commit is easier.
This will have conflicts with #1576
Changelog
New PanView - improve animations (using
useHiddenLocation
)