title: Workaround for Safari IOS pointer events (not supported)
body: <p><a href="https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/pointerdown_event" rel="nofollow noreferrer">https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/pointerdown_event</a></p>
  
  <p>Hello I have working code for a long click, but pointer event api is not supported in Safari only, currently under development.</p>
  
  <p>Is there some simple workaround I can apply just for safari? Unless I can just use some other event? I've tried with 'mousedown/mouseup' but no luck.</p>
  
  <p>The below code works with "touchstart/touchend" as well as "pointerdown/pointerup" but neither have comprehensive browser support.</p>
  
  <pre><code>    let pressTimer;
      this.myDocsums.on('touchend', () =&gt; {
        clearTimeout(pressTimer);
      }).on('touchstart', (e) =&gt; {
        let startY = window.pageYOffset;
        let docsum = $(e.currentTarget);
        let selectorInput = docsum.find('.selector-input');
        pressTimer = window.setTimeout(() =&gt; {
          let endY = window.pageYOffset;
          if (startY == endY) {
            selectorInput.trigger('click');
          }
        }, 750)
      });
  </code></pre>