-
Notifications
You must be signed in to change notification settings - Fork 734
Feat/panning fixes #483
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
Feat/panning fixes #483
Conversation
@@ -193,8 +210,9 @@ class PanDismissibleView extends PureComponent { | |||
}; | |||
|
|||
onInitAnimationFinished = () => { |
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.
change animateToInitialPosition
to resetPosition
change onInitAnimationFinished
to onResetPositionFinished
forceDismissIsPending
change to shouldDismissAfterReset
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
this.initPositions(); | ||
const {forceDismissIsPending} = this.state; | ||
const runAfterSetState = forceDismissIsPending ? this.animateDismiss : undefined; | ||
this.initPositions({isAnimating: false, forceDismissIsPending: false}, runAfterSetState); |
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.
do we really need isAnimating
in state
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.
We need it in the state (but I removed shouldDismissAfterReset
from the state)
@@ -25,7 +25,8 @@ const ITEM_PROP_TYPES = { | |||
|
|||
/** | |||
* @description: Drawer Component |
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 already fixed this in master, please remove it from the PR
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.
Merged, done
No description provided.