From 07f15ba6ce2693f9751d7b7365f7951d16452854 Mon Sep 17 00:00:00 2001 From: Ethan Selzer Date: Fri, 3 Mar 2017 23:06:03 -0800 Subject: [PATCH] Upgrade to react-touch-position@2.0.1 --- package.json | 8 ++++---- src/ReactImageMagnifyTouch.js | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index f48a8cfd..74464826 100644 --- a/package.json +++ b/package.json @@ -74,11 +74,11 @@ "react-dom": "~0.14.8 || ^15.0.0" }, "dependencies": { - "babel-runtime": "^6.6.1", + "babel-runtime": "^6.23.0", "lodash.assign": "^4.2.0", "lodash.clamp": "^4.0.3", - "react-cursor-position": "^1.1.0", - "react-hover-observer": "^1.1.0", - "react-touch-position": "^1.0.2" + "react-cursor-position": "^1.3.6", + "react-hover-observer": "^1.1.1", + "react-touch-position": "^2.0.1" } } diff --git a/src/ReactImageMagnifyTouch.js b/src/ReactImageMagnifyTouch.js index f495397b..c254cca3 100644 --- a/src/ReactImageMagnifyTouch.js +++ b/src/ReactImageMagnifyTouch.js @@ -29,9 +29,9 @@ const ReactImageMagnifyTouch = ({ ({ + mapChildProps: ({ isActive, isPositionOutside, touchPosition }) => ({ isHovering: isActive, - isTouchOutside, + isTouchOutside: isPositionOutside, cursorPosition: touchPosition }), pressDuration,