New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'onTouchMove' listener is causing issues after removing all listeners #18
Comments
It would help wonders if you could create a demo with this issue, so we can reproduce and fix the problem. |
Apologies, I started working on a plunker for this but couldn't finish it due to work stuff. Essentially an |
I'm trying to create a plnkr to reproduce this issue, but I'm having issues initializing the library, not sure why. It's pretty simple to reproduce the issue however, I'll lay out the steps here. In order to reproduce this error, open up any app using this library in Chrome and invoke If you re-initialize the library at this point and check the event listeners, you'll see that the other two touch events have been added but now there are two If you remove the |
It seems there is already a PR that addresses this issue: |
does it work to add Like this: window.removeEventListener('touchmove', handlers.onTouchMove, { passive: false }); |
@davidalee I tried to reproduce this but What version of chrome are you using?
|
Hi guys, closing this since I've merged the pending PRs. 👍 |
I'm experiencing an issue when I toggle between two pages in my app. The first page has the pull to refresh feature, the second page does not have this feature so when the user navigates to the second page, I invoke the destroy method to remove the listeners. But when I scroll on the second page, I get an error
TypeError: Cannot read property 'classList' of undefined at _onTouchMove
and all of my content disappears.
The text was updated successfully, but these errors were encountered: