Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
snapScrollHandler() {
if (
this.snapScroller === null &&
this.charts != null &&
this.snapConfig != null
) {
this.snapScroller = new ScrollSnap(this.charts, this.snapConfig);
}
if (this.snapScroller != null) {
if (this.props.isMobile) {
this.snapScroller.bind(this.determineActiveScrolledChart);
this.determineActiveScrolledChart();
} else {
this.snapScroller.unbind();
}
}
}
snapScrollHandler() {
if (
this.snapScroller === null &&
this.charts != null &&
this.snapConfig != null
) {
this.snapScroller = new ScrollSnap(this.charts, this.snapConfig)
}
if (this.snapScroller != null) {
if (this.props.isMobile) {
this.snapScroller.bind(this.determineActiveScrolledChart)
this.determineActiveScrolledChart()
} else {
this.snapScroller.unbind()
}
}
}