hammerjs / hammer.js

A javascript library for multi-touch gestures :// You can touch this

Home Page:http://hammerjs.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is there a way to implement elastic/rubber-band scrolling with Hammerjs?

purvishah165 opened this issue · comments

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]);