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

feat: swipe velocity impact as prop #249

Merged
merged 9 commits into from
Oct 5, 2019
Merged

feat: swipe velocity impact as prop #249

merged 9 commits into from
Oct 5, 2019

Conversation

osdnk
Copy link
Member

@osdnk osdnk commented Oct 4, 2019

No description provided.

@osdnk osdnk changed the title wip: swipe velocity impact as prop swipe velocity impact as prop Oct 5, 2019
Comment on lines +504 to +512
set(
this.gesture,
cond(
eq(this.direction, DIRECTION_HORIZONTAL),
multiply(
this.gestureUntraversed,
I18nManager.isRTL ? MINUS_ONE_NODE : TRUE_NODE
)
),
this.gestureUntraversed
Copy link
Member Author

Choose a reason for hiding this comment

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

I figured out it's a bug here. We weren't updating this.gesture in vertical mode.

Comment on lines +611 to +617
cond(
eq(this.direction, DIRECTION_HORIZONTAL),
multiply(
this.gestureUntraversed,
I18nManager.isRTL ? MINUS_ONE_NODE : TRUE_NODE
),
this.gestureUntraversed
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 was another bug here. In RTL we were multiplying a gesture in vertical mode as well.

@osdnk osdnk changed the title swipe velocity impact as prop feat: swipe velocity impact as prop Oct 5, 2019
@osdnk osdnk merged commit cff968a into master Oct 5, 2019
@osdnk osdnk deleted the @osdnk/SWI branch October 5, 2019 18: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