GuoChen-WHU / react-native-pinch-zoom-view

A pinch-to-zoom view for React Native.
103 stars 43 forks source link

I think this line need a little fix #12

Closed marsonmao closed 6 years ago

marsonmao commented 6 years ago
_handleMoveShouldSetPanResponder = (e, gestureState) => {
    return this.props.scalable && gestureState.dx > 2 || gestureState.dy > 2 || gestureState.numberActiveTouches === 2;
}

should be

_handleMoveShouldSetPanResponder = (e, gestureState) => {
    return this.props.scalable && (gestureState.dx > 2 || gestureState.dy > 2 || gestureState.numberActiveTouches === 2);
}
GuoChen-WHU commented 6 years ago

Yes, I'll fix it, thank you!