Setting the pan direction to "Hammer.DIRECTION_NONE" does not seems to stick.
NyaNguyen opened this issue · comments
Nya Nguyen commented
Not sure if this is by design, but if we set the direction option for the pan to DIRECTION_NONE , I assumed the pan event would not trigger, but it does after a few random clicks/pans on the element. You'd think if the pan event does not happen the first time, it would not also afterwards. I'm running Firefox 79.0 and using the latest Hammer API.
<div class="hammer" id="hammer">
Hello World
</div>
let mc = new Hammer(document.getElementById('hammer'));
mc.get('pan').set({ direction: Hammer.DIRECTION_NONE });
mc.on('pan', function() {
console.log('Panning...');
});