diff --git a/src/components/View/index.js b/src/components/View/index.js index c584ac12..5ccd4b86 100644 --- a/src/components/View/index.js +++ b/src/components/View/index.js @@ -45,16 +45,7 @@ class View extends Component { constructor(props, context) { super(props, context) - this._handleClick = this._handleClick.bind(this) - this._handleClickCapture = this._handleClickCapture.bind(this) - this._handleTouchCancel = this._handleTouchCancel.bind(this) - this._handleTouchCancelCapture = this._handleTouchCancelCapture.bind(this) - this._handleTouchEnd = this._handleTouchEnd.bind(this) - this._handleTouchEndCapture = this._handleTouchEndCapture.bind(this) - this._handleTouchMove = this._handleTouchMove.bind(this) - this._handleTouchMoveCapture = this._handleTouchMoveCapture.bind(this) - this._handleTouchStart = this._handleTouchStart.bind(this) - this._handleTouchStartCapture = this._handleTouchStartCapture.bind(this) + this._normalizeEventForHandler = this._normalizeEventForHandler.bind(this) } render() { @@ -70,15 +61,15 @@ class View extends Component { { + const { pageX } = e.nativeEvent + if (pageX === undefined) { + e.nativeEvent = normalizeNativeEvent(e.nativeEvent) + } + this.props[handler] && this.props[handler](e) } } }