Skip to content

Clicks stop working on mobile device / Cordova #16

@maxclement

Description

@maxclement

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions