Is there a way to implement elastic/rubber-band scrolling with Hammerjs?
purvishah165 opened this issue · comments
psh165 commented
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]);