diff --git a/Libraries/Components/Touchable/Touchable.js b/Libraries/Components/Touchable/Touchable.js index c8d67ab3e17671..f9d8e1e433463e 100644 --- a/Libraries/Components/Touchable/Touchable.js +++ b/Libraries/Components/Touchable/Touchable.js @@ -623,7 +623,9 @@ var TouchableMixin = { var touch = TouchEventUtils.extractSingleTouch(e.nativeEvent); var pageX = touch && touch.pageX; var pageY = touch && touch.pageY; - this.pressInLocation = {pageX: pageX, pageY: pageY}; + var locationX = touch && touch.locationX; + var locationY = touch && touch.locationY; + this.pressInLocation = {pageX, pageY, locationX, locationY}; }, _getDistanceBetweenPoints: function (aX, aY, bX, bY) { diff --git a/Libraries/Components/Touchable/TouchableNativeFeedback.android.js b/Libraries/Components/Touchable/TouchableNativeFeedback.android.js index 240b2482a0561d..ec3850c6bf9300 100644 --- a/Libraries/Components/Touchable/TouchableNativeFeedback.android.js +++ b/Libraries/Components/Touchable/TouchableNativeFeedback.android.js @@ -141,7 +141,7 @@ var TouchableNativeFeedback = React.createClass({ touchableHandleActivePressIn: function() { this.props.onPressIn && this.props.onPressIn(); this._dispatchPressedStateChange(true); - this._dispatchHotspotUpdate(this.pressInLocation.pageX, this.pressInLocation.pageY); + this._dispatchHotspotUpdate(this.pressInLocation.locationX, this.pressInLocation.locationY); }, touchableHandleActivePressOut: function() {