Skip to content

removeWheelListener does not remove listener on IE11 #8

Description

@pr1ntr

so here is my code in react (works in all browsers except IE11)

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))
        },
    }),

My onScroll function still fires after I remove

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions