-
Notifications
You must be signed in to change notification settings - Fork 22
Description
Hi jessedvrs,
I am using your great carousel Angular plugin in a personal Cordova project and I faced an issue that turned me crazy for a while! In a nutshell, I have a specific view that contains the carousel. When I enter that view and then leave it to go back on the main view, clicks have no effects anymore, the application seems to have crashed. I thought at first it was a kind of Cordova/JS silent error. After many hours, I figured out that the two lignes of code $document.off(pressEvent) and $document.off(releaseEvent) in the destroy function were making the mobile webview to stop listening for click events. Thus, I quick fixed my issue by commenting those two lines.
I do not know if I implemented the carousel the good way and if I am the only one who experienced that, but I wanted to share it with you. Note that i do not have the problem on a desktop web browser.
Max