|
|
|
@ -212,19 +212,17 @@ export default class AdvancedProfile extends Component { |
|
|
|
@Bind() |
|
|
|
@Debounce(200) |
|
|
|
setStepDirection() { |
|
|
|
requestAnimationFrame(() => { |
|
|
|
const { stepDirection } = this.state; |
|
|
|
const w = getWindowWidth(); |
|
|
|
if (stepDirection !== 'vertical' && w <= 576) { |
|
|
|
this.setState({ |
|
|
|
stepDirection: 'vertical', |
|
|
|
}); |
|
|
|
} else if (stepDirection !== 'horizontal' && w > 576) { |
|
|
|
this.setState({ |
|
|
|
stepDirection: 'horizontal', |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
const { stepDirection } = this.state; |
|
|
|
const w = getWindowWidth(); |
|
|
|
if (stepDirection !== 'vertical' && w <= 576) { |
|
|
|
this.setState({ |
|
|
|
stepDirection: 'vertical', |
|
|
|
}); |
|
|
|
} else if (stepDirection !== 'horizontal' && w > 576) { |
|
|
|
this.setState({ |
|
|
|
stepDirection: 'horizontal', |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
render() { |
|
|
|
|