1000ch / vue-recognizer

Vue.js plugin to recognize touch, mouse, pointer events using Hammer.js.
https://www.npmjs.com/vue-recognizer
MIT License
11 stars 0 forks source link

doubletap cannot be triggered #7

Open StringKe opened 4 years ago

StringKe commented 4 years ago

image

maybe check doubletap failed excute tap?

hammerjs failure check

StringKe commented 4 years ago
          case Recognizer.FailedDSTap:
            hammer.add(new Hammer.Tap({event: 'doubletap', taps: 2}));
            hammer.add(new Hammer.Tap({event: 'singletap'}));
            hammer.get('doubletap').recognizeWith('singletap');
            hammer.get('singletap').requireFailure('doubletap');
            hammer.on("singletap doubletap", listener);
            break;