Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #200 from FormidableLabs/v6-fix-deltas
V6 fix deltas
- Loading branch information
Showing
4 changed files
with
36 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
React Swipeable v6 changes and migration | ||
========================= | ||
# React Swipeable v6 changes and migration | ||
|
||
## Major Changes | ||
|
||
- removal of `<Swipeable>` component | ||
- _TODO_ add example for creating one and migrating | ||
- update calculation of `deltaX` and `deltaY` from `initial - current` to `current - initial` | ||
- Example: `const deltaX = state.xy[0] - x;` is now `const deltaX = x - state.xy[0];` | ||
|
||
## Migrate Swipeable v5 to v6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters