function didTapOnMainContent(event) {
  return !!
  /** @type {HTMLElement} */
  event.target.closest('.pswp__container');
}
Whether the tap was performed on the main slide
(rather than controls or caption).

@param {PointerEvent} event
@returns {boolean}