Skip to content

Dead code in swipe recognizer #103

Description

@c-smile

I believe this

if (velocity < this.escapeVelocity) {

should be

for (var i = 0; i < output.data.length; i++) {
        if (output.data[i].velocity < this.escapeVelocity) {
          return null;
        }
      }

otherwise, it is useless.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions