react-native-drax 0.10.2 → 0.10.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,12 @@ Changes marked as (BREAKING) may break your app logic. Changes marked as (BREAKI
9
9
  ## [Unreleased]
10
10
  - Nothing yet
11
11
 
12
+
13
+ ## [0.10.3] - 2022-09-06
14
+
15
+ ### Fixed
16
+ - Fix clipping sizes to properly take position into account (#151) - Thank you @FrancoisDupayrat!
17
+
12
18
  ## [0.10.2] - 2022-06-10
13
19
 
14
20
  ### Added
@@ -235,7 +241,8 @@ Changes marked as (BREAKING) may break your app logic. Changes marked as (BREAKI
235
241
 
236
242
  *(More history to be added later?)*
237
243
 
238
- [Unreleased]: https://github.com/nuclearpasta/react-native-drax/compare/v0.10.2...HEAD
244
+ [Unreleased]: https://github.com/nuclearpasta/react-native-drax/compare/v0.10.3...HEAD
245
+ [0.10.3]: https://github.com/nuclearpasta/react-native-drax/compare/v0.10.2...v0.10.3
239
246
  [0.10.2]: https://github.com/nuclearpasta/react-native-drax/compare/v0.10.1...v0.10.2
240
247
  [0.10.1]: https://github.com/nuclearpasta/react-native-drax/compare/v0.10.0...v0.10.1
241
248
  [0.10.0]: https://github.com/nuclearpasta/react-native-drax/compare/v0.9.3...v0.10.0
package/build/math.js CHANGED
@@ -17,20 +17,20 @@ const clipMeasurements = (vm, cvm) => {
17
17
  };
18
18
  }
19
19
  if (x0 < cx0) {
20
- x0 = cx0;
21
20
  width -= cx0 - x0;
21
+ x0 = cx0;
22
22
  }
23
23
  if (x1 > cx1) {
24
- x1 = cx1;
25
24
  width -= x1 - cx1;
25
+ x1 = cx1;
26
26
  }
27
27
  if (y0 < cy0) {
28
- y0 = cy0;
29
28
  height -= cy0 - y0;
29
+ y0 = cy0;
30
30
  }
31
31
  if (y1 > cy1) {
32
- y1 = cy1;
33
32
  height -= y1 - cy1;
33
+ y1 = cy1;
34
34
  }
35
35
  return {
36
36
  width,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-drax",
3
- "version": "0.10.2",
3
+ "version": "0.10.3",
4
4
  "description": "A drag-and-drop system for React Native",
5
5
  "repository": {
6
6
  "type": "git",