diff --git a/docs/panresponder.html b/docs/panresponder.html index bea59a9d78b..1313846b3a1 100644 --- a/docs/panresponder.html +++ b/docs/panresponder.html @@ -96,8 +96,10 @@ are the responder.

this._previousLeft = 20; this._previousTop = 84; this._circleStyles = { - left: this._previousLeft, - top: this._previousTop, + style: { + left: this._previousLeft, + top: this._previousTop + } }; }, @@ -122,13 +124,17 @@ are the responder.

: function() { this.circle && this.circle.setNativeProps({ - backgroundColor: processColor(CIRCLE_HIGHLIGHT_COLOR) + style: { + backgroundColor: processColor(CIRCLE_HIGHLIGHT_COLOR) + } }); }, _unHighlight: function() { this.circle && this.circle.setNativeProps({ - backgroundColor: processColor(CIRCLE_COLOR) + style: { + backgroundColor: processColor(CIRCLE_COLOR) + } }); }, @@ -150,8 +156,8 @@ are the responder.

this._highlight(); }, _handlePanResponderMove: function(e: Object, gestureState: Object) { - this._circleStyles.left = this._previousLeft + gestureState.dx; - this._circleStyles.top = this._previousTop + gestureState.dy; + this._circleStyles.style.left = this._previousLeft + gestureState.dx; + this._circleStyles.style.top = this._previousTop + gestureState.dy; this._updatePosition(); }, _handlePanResponderEnd: function(e: Object, gestureState: Object) {