Skip to content
This repository has been archived by the owner on Feb 25, 2020. It is now read-only.

fix: send events even is stack animation is vain #270

Merged
merged 3 commits into from
Oct 22, 2019

Conversation

osdnk
Copy link
Member

@osdnk osdnk commented Oct 22, 2019

No description provided.

call(
[this.didMovementHappen, this.isVisible],
([didMovementHappen, value]: ReadonlyArray<Binary>) => {
if (didMovementHappen) {
Copy link
Member Author

Choose a reason for hiding this comment

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

it's the only difference. If this.props.current and isVisible are equal we need to predict a case when component was dragging but there was no movement as a result

}),
]),
]);
set(this.didMovementHappen, 0),
Copy link
Member Author

Choose a reason for hiding this comment

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

plus this. We handle it only once

@osdnk osdnk merged commit 3d4b173 into master Oct 22, 2019
@osdnk osdnk deleted the @osdnk/inputs-animation branch October 22, 2019 14:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants