air/encounter

fix disable dragging

dzanis opened this issue · 0 comments

// FIXME this shouldn't be needed but we go a few px off bottom of screen, which enables drag

For disable dragging you can add {passive: false} as the third argument to addEventListener

  document.addEventListener('touchmove', function(event) {
    event.preventDefault();
  },{passive: false});