|
|
@ -99,9 +99,14 @@ class ColumnsArea extends ImmutablePureComponent {
|
|
|
|
if (this.props.singleColumn !== prevProps.singleColumn && !this.props.singleColumn) {
|
|
|
|
if (this.props.singleColumn !== prevProps.singleColumn && !this.props.singleColumn) {
|
|
|
|
this.node.addEventListener('wheel', this.handleWheel, supportsPassiveEvents ? { passive: true } : false);
|
|
|
|
this.node.addEventListener('wheel', this.handleWheel, supportsPassiveEvents ? { passive: true } : false);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.lastIndex = getIndex(this.context.router.history.location.pathname);
|
|
|
|
|
|
|
|
|
|
|
|
const newIndex = getIndex(this.context.router.history.location.pathname);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (this.lastIndex !== newIndex) {
|
|
|
|
|
|
|
|
this.lastIndex = newIndex;
|
|
|
|
this.setState({ shouldAnimate: true });
|
|
|
|
this.setState({ shouldAnimate: true });
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
componentWillUnmount () {
|
|
|
|
componentWillUnmount () {
|
|
|
|
if (!this.props.singleColumn) {
|
|
|
|
if (!this.props.singleColumn) {
|
|
|
|