<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>246313</bug_id>
          
          <creation_ts>2022-10-10 19:39:17 -0700</creation_ts>
          <short_desc>The second pointerdown/touchstart event is missing on double-tap gesture</short_desc>
          <delta_ts>2022-11-04 20:34:17 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>UI Events</component>
          <version>Safari 16</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 16</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>weijarz</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>thorton</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1904698</commentid>
    <comment_count>0</comment_count>
    <who name="">weijarz</who>
    <bug_when>2022-10-10 19:39:17 -0700</bug_when>
    <thetext>To reproduce:

https://www.oxyry.com/test/safari-double-tap-bug/safari-double-tap-bug.html

1. Open the url in safari
2. Add this webpage to Home Screen (REQUIRED!!!)
3. Open this webpage from Home Screen icon.
4. Double tap black area, only one pointerdown/touchstart event will be triggered!

Note: Open it in Safari browser is working properly.


Full source:
```
&lt;!DOCTYPE html&gt;
&lt;html&gt;
  &lt;head&gt;
    &lt;meta charset=&quot;utf-8&quot;&gt;
    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0&quot;&gt;
    &lt;title&gt;Safari double tap bug&lt;/title&gt;

    &lt;link rel=&quot;manifest&quot; href=&quot;manifest.json&quot;&gt;

    &lt;meta name=&quot;apple-mobile-web-app-capable&quot; content=&quot;yes&quot;&gt;
    &lt;meta name=&quot;mobile-web-app-capable&quot; content=&quot;yes&quot;&gt;
    &lt;meta name=&quot;apple-mobile-web-app-status-bar-style&quot; content=&quot;default&quot;&gt;

    &lt;style&gt;
      #rootEl {
        height: 70vh;
        overflow: auto;
        background: #000;
        color: #fff;
        /* touch-action: none; */
        user-select: none;
      }
    &lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;div&gt;
      &lt;div id=&quot;rootEl&quot;&gt;&lt;/div&gt;
      &lt;p id=&quot;btns&quot;&gt;
        &lt;button id=&quot;clearBtn&quot;&gt;Clear&lt;/button&gt;
        &lt;button id=&quot;reloadBtn&quot;&gt;Reload&lt;/button&gt;
      &lt;/p&gt;
    &lt;/div&gt;
    &lt;script&gt;
      clearBtn.onclick = () =&gt; { rootEl.innerHTML = &apos;&apos;; }
      reloadBtn.onclick =  () =&gt; { location.reload(); }

      const log = (msg) =&gt; {
        const m = document.createElement(&apos;div&apos;)
        m.textContent = msg
        rootEl.appendChild(m)
      }

      let i = 0
      rootEl.addEventListener(&apos;pointerdown&apos;, () =&gt; {
        log(`pointerdown #${i++}`)
      })

      let j = 0
      rootEl.addEventListener(&apos;touchstart&apos;, (ev) =&gt; {
        log(`touchstart #${j++}`)
        // ev.preventDefault()
      })
    &lt;/script&gt;
  &lt;/body&gt;
&lt;/html&gt;

```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1906352</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-10-17 19:40:18 -0700</bug_when>
    <thetext>&lt;rdar://problem/101273397&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1910181</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Robinson">richard_robinson2</who>
    <bug_when>2022-11-03 14:39:46 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/6101</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1910490</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-11-04 20:34:16 -0700</bug_when>
    <thetext>Committed 256348@main (6115b3860098): &lt;https://commits.webkit.org/256348@main&gt;

Reviewed commits have been landed. Closing PR #6101 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>