I am using Hammerjs with React and currently I have set up hammerjs so that I can pan left right or up down. I want to implement rubber band scrolling effect when am the end of the scroll area but not sure how can I achieve this effect.
Any Ideas?
`
useEffect(() => {
if (state.isPanning === false) {
if (isScrollAtEnd()) {
//TODO add bounce on scroll end
}
}
}, [isScrollAtEnd, state.isPanning]);
I am using Hammerjs with React and currently I have set up hammerjs so that I can pan left right or up down. I want to implement rubber band scrolling effect when am the end of the scroll area but not sure how can I achieve this effect. Any Ideas? ` useEffect(() => { if (state.isPanning === false) { if (isScrollAtEnd()) { //TODO add bounce on scroll end } } }, [isScrollAtEnd, state.isPanning]);