        this._cancelFunction = canceller;
        document.addEventListener('click', canceller, true);
      }
    },

    // try to use the native touch-action, if it exists
    _hasNativeTA: typeof document.head.style.touchAction === 'string',

    // set scrolling direction on node to check later on first move
    // must call this before adding event listeners!
    setTouchAction: function(node, value) {
      if (this._hasNativeTA) {
        node.style.touchAction = value;
      }
      n