true, true)
      event.pageX = x
      event.pageY = y
      event.pointerType = 666
      event.MSPOINTER_TYPE_TOUCH = 666
      event.isPrimary = true

      element.dispatchEvent(event)
    }

    // IE 11
    // Pointer events, same idea again, yet different implementation.
    // For compatibility accepts the same arguments as `touchEvent`
    // (touch event names will be mapped to pointer event names)
    function emitPointerEvent(type, element, x, y) {
      var event = document.createEvent('Event'