zingtouch icon indicating copy to clipboard operation
zingtouch copied to clipboard

Dead code in swipe recognizer

Open c-smile opened this issue 1 year ago • 1 comments

I believe this https://github.com/zingchart/zingtouch/blob/d36d10e0a375b5b31e6f6beb3f942c16b4433ee9/src/gestures/Swipe.js#L210

should be

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

otherwise, it is useless.

c-smile avatar Oct 30 '22 15:10 c-smile