react-native-drax 0.9.2 → 0.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -9,6 +9,11 @@ Changes marked as (BREAKING) may break your app logic. Changes marked as (BREAKI
9
9
  ## [Unreleased]
10
10
  - Nothing yet
11
11
 
12
+ ## [0.9.3] - 2021-12-14
13
+
14
+ ### Fixed
15
+ - Fixed typo-based math error in auto-scroll logic (#126)
16
+
12
17
  ## [0.9.2] - 2021-12-08
13
18
 
14
19
  ### Fixed
@@ -206,7 +211,8 @@ Changes marked as (BREAKING) may break your app logic. Changes marked as (BREAKI
206
211
 
207
212
  *(More history to be added later)*
208
213
 
209
- [Unreleased]: https://github.com/nuclearpasta/react-native-drax/compare/v0.9.2...HEAD
214
+ [Unreleased]: https://github.com/nuclearpasta/react-native-drax/compare/v0.9.3...HEAD
215
+ [0.9.3]: https://github.com/nuclearpasta/react-native-drax/compare/v0.9.2...v0.9.3
210
216
  [0.9.2]: https://github.com/nuclearpasta/react-native-drax/compare/v0.9.1...v0.9.2
211
217
  [0.9.1]: https://github.com/nuclearpasta/react-native-drax/compare/v0.9.0...v0.9.1
212
218
  [0.9.0]: https://github.com/nuclearpasta/react-native-drax/compare/v0.8.2...v0.9.0
@@ -76,7 +76,7 @@ const DraxScrollViewUnforwarded = (props, forwardedRef) => {
76
76
  }
77
77
  }
78
78
  if (autoScrollState.y === types_1.AutoScrollDirection.Forward) {
79
- const yMax = contentSize.y - containerMeasurements.width;
79
+ const yMax = contentSize.y - containerMeasurements.height;
80
80
  if (scrollPosition.y < yMax) {
81
81
  yNew = Math.min(scrollPosition.y + jump.y, yMax);
82
82
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-drax",
3
- "version": "0.9.2",
3
+ "version": "0.9.3",
4
4
  "description": "A drag-and-drop system for React Native",
5
5
  "repository": {
6
6
  "type": "git",