(props)
| 59 | |
| 60 | class Carousel extends React.Component { |
| 61 | constructor(props) { |
| 62 | super(props); |
| 63 | this.handleKeyPress = this.handleKeyPress.bind(this); |
| 64 | this.renderItems = this.renderItems.bind(this); |
| 65 | this.hoverStart = this.hoverStart.bind(this); |
| 66 | this.hoverEnd = this.hoverEnd.bind(this); |
| 67 | this.handleTouchStart = this.handleTouchStart.bind(this); |
| 68 | this.handleTouchEnd = this.handleTouchEnd.bind(this); |
| 69 | this.touchStartX = 0; |
| 70 | this.touchStartY = 0; |
| 71 | this.state = { |
| 72 | activeIndex: this.props.activeIndex, |
| 73 | direction: 'end', |
| 74 | indicatorClicked: false, |
| 75 | }; |
| 76 | } |
| 77 | |
| 78 | componentDidMount() { |
| 79 | // Set up the cycle |
nothing calls this directly
no outgoing calls
no test coverage detected