code: function swiped(event) {
      console.log(event);
      event.currentTarget.querySelector('span').textContent = 'Swiped ' + event.direction;
    }
docs: On Swipe handler.
  @param {PointerEvent} event Pointer event object.