lifecycle({
componentDidMount() {
const { onScroll, onSwipe, id } = this.props
addWheelListener(window, onScroll)
const swipe = new ZingTouch.Swipe()
const region = ZingTouch.Region(
document.getElementById(id),
false,
false
)
region.bind(document.getElementById(id), swipe, onSwipe)
},
componentWillUnmount() {
const { onScroll, id } = this.props
removeWheelListener(window, onScroll)
const region = ZingTouch.Region(document.getElementById(id))
region.unbind(document.getElementById(id))
},
}),
so here is my code in react (works in all browsers except IE11)
My onScroll function still fires after I remove