()
| 123 | } |
| 124 | |
| 125 | componentDidMount() { |
| 126 | this.updateFrameAndClearCache = this.updateFrameAndClearCache.bind(this); |
| 127 | window.addEventListener('resize', this.updateFrameAndClearCache); |
| 128 | this.updateFrame(this.scrollTo.bind(this, this.props.initialIndex)); |
| 129 | } |
| 130 | |
| 131 | componentDidUpdate(prevProps) { |
| 132 | // Viewport scroll is no longer useful if axis changes |
no test coverage detected