Skip to content

error thrown with missing firstTap #173

@kewashi

Description

@kewashi

On line 364 the variable "firstTap" is not defined when you use swipe and doubleTap on the same page. It doesn't happen all the time but appears to happen when the item swiped on was never doubleTapped on. The fix is easy - add "firstTap &&" to the if statement. I didn't bother with a pull request but I can if you prefer. Here is the patched line:

            if (delta < settings.doubletap_int && (firstTap && $(e.target).index() == firstTap.index) && delta > 100) {

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