@mpxjs/webpack-plugin 2.10.4-beta.11 → 2.10.4-beta.12

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.
@@ -36,7 +36,7 @@ const KeyboardAvoidingView = ({ children, style, contentContainerStyle }) => {
36
36
  const { ref, cursorSpacing = 0 } = keyboardAvoid.current;
37
37
  setTimeout(() => {
38
38
  ref?.current?.measure((x, y, width, height, pageX, pageY) => {
39
- const aboveOffset = pageY + height - endCoordinates.screenY;
39
+ const aboveOffset = offset.value + pageY + height - endCoordinates.screenY;
40
40
  const aboveValue = -aboveOffset >= cursorSpacing ? 0 : aboveOffset + cursorSpacing;
41
41
  const belowValue = Math.min(endCoordinates.height, aboveOffset + cursorSpacing);
42
42
  const value = aboveOffset > 0 ? belowValue : aboveValue;
@@ -48,7 +48,7 @@ const KeyboardAvoidingView = ({ children, style, contentContainerStyle }: Keyboa
48
48
  const { ref, cursorSpacing = 0 } = keyboardAvoid.current
49
49
  setTimeout(() => {
50
50
  ref?.current?.measure((x: number, y: number, width: number, height: number, pageX: number, pageY: number) => {
51
- const aboveOffset = pageY + height - endCoordinates.screenY
51
+ const aboveOffset = offset.value + pageY + height - endCoordinates.screenY
52
52
  const aboveValue = -aboveOffset >= cursorSpacing ? 0 : aboveOffset + cursorSpacing
53
53
  const belowValue = Math.min(endCoordinates.height, aboveOffset + cursorSpacing)
54
54
  const value = aboveOffset > 0 ? belowValue : aboveValue
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mpxjs/webpack-plugin",
3
- "version": "2.10.4-beta.11",
3
+ "version": "2.10.4-beta.12",
4
4
  "description": "mpx compile core",
5
5
  "keywords": [
6
6
  "mpx"