You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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]);
The text was updated successfully, but these errors were encountered:
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]);
The text was updated successfully, but these errors were encountered: