Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
scrollToBottom(){
console.log("scrolling to bottom")
scroller.scrollTo('theVeryBottom', {
duration: 500,
delay: 30,
smooth: "easeInOutCubic",
})
}
canSend() {
scrollTo(offset) {
scroller.scrollTo('scroll-to-element', {
duration: 800,
delay: 0,
smooth: 'easeInOutQuart',
offset: offset
})
}
scrollToWithContainer() {
scrollToBottom() {
scroller.scrollTo('bottom', {
duration: 400,
delay: 0,
smooth: 'easeInOutQuart',
containerId: 'scroll-container'
});
}
const scroll = () => {
const id = location.hash.substr(1)
if (id) scroller.scrollTo(id, {smooth: true, duration})
}
scrollToInput() {
scroller.scrollTo(`scrollToInput`, {
duration: 1500,
delay: 100,
smooth: true,
containerId: "accountForm"
});
}
error => {
ReactGA.event({
category: GA_CATEGORY.SHARE_TIME_SALARY,
action: GA_ACTION.UPLOAD_FAIL,
});
return ({ buttonClick }) => (
);
},
);
}
this.handleState('submitted')(true);
const topInvalidElement = this.getTopInvalidElement();
if (topInvalidElement !== null) {
scroller.scrollTo(topInvalidElement, {
duration: 1000,
delay: 100,
offset: -100,
smooth: true,
});
}
return Promise.reject();
}
componentDidMount() {
scroller.scrollTo('scroll_to_results', {
smooth: true,
offset: -this.props.searchContainerHeight
});
}