<?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>203031</bug_id>
          
          <creation_ts>2019-10-16 02:29:46 -0700</creation_ts>
          <short_desc>iPad not triggering the same pointer events as iPhone</short_desc>
          <delta_ts>2019-10-16 04:19:39 -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>DOM</component>
          <version>Safari 13</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 13</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="filcab">webkit.bugzilla</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>graouts</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1580498</commentid>
    <comment_count>0</comment_count>
    <who name="filcab">webkit.bugzilla</who>
    <bug_when>2019-10-16 02:29:46 -0700</bug_when>
    <thetext>I&apos;m attaching a page with some JS for showing which events are being triggered.

I&apos;m seeing a difference between iPad and iPhone that I can&apos;t explain:
On the iPad, a double-tap on the &quot;test&quot; button will only trigger one &quot;pointerdown/pointerup&quot; pair, whilst on the iPhone it triggers two, one pair for each tap.

Sequence of printed lines on the iPad for a double-tap on the &quot;test&quot; button:
pointerdown
pointerup
mousemove
mousedown
mouseup
click
mousedown
mouseup
click
dblclick


Sequence of printed lines on the iPhone:
pointerdown
pointerup
mousemove
mousedown
mouseup
click
pointerdown
pointerup
 (no mousemove)
mousedown
mouseup
click
dblclick


I found this when trying to fix this leaflet bug: https://github.com/Leaflet/Leaflet/issues/6817
I have a fix which works for the iPhone (leaflet wasn&apos;t doing what it should on new Safari with PointerEvents), but for the iPad it fails. I tracked down this difference in behaviour. I&apos;m not sure this is the cause (I don&apos;t even see &apos;click&apos; events being triggered by the second tap on the iPad)
https://github.com/Leaflet/Leaflet/pull/6855


I tried searching on bugzilla, but I couldn&apos;t find a similar bug. Sorry if this is a duplicate.

Thank you,
 Filipe</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1580502</commentid>
    <comment_count>1</comment_count>
    <who name="filcab">webkit.bugzilla</who>
    <bug_when>2019-10-16 02:56:36 -0700</bug_when>
    <thetext>iOS version on both: iOS 13.1.2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1580503</commentid>
    <comment_count>2</comment_count>
      <attachid>381065</attachid>
    <who name="filcab">webkit.bugzilla</who>
    <bug_when>2019-10-16 03:18:26 -0700</bug_when>
    <thetext>Created attachment 381065
Test page

Actually attaching the file</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1580510</commentid>
    <comment_count>3</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2019-10-16 04:19:30 -0700</bug_when>
    <thetext>Thanks for filing this Filipe.

In iOS and iPadOS 13.2 the difference you mention is gone and event log from iPhone as you list it will be the same on iPad as well. You can verify this with the latest iPadOS 13.2 developer seed from developer.apple.com.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>381065</attachid>
            <date>2019-10-16 03:18:26 -0700</date>
            <delta_ts>2019-10-16 03:18:26 -0700</delta_ts>
            <desc>Test page</desc>
            <filename>pointer.html</filename>
            <type>text/html</type>
            <size>724</size>
            <attacher name="filcab">webkit.bugzilla</attacher>
            
              <data encoding="base64">PGh0bWw+Cgk8aGVhZD4KCQk8bWV0YSBuYW1lPSJ2aWV3cG9ydCIgY29udGVudD0id2lkdGg9ZGV2
aWNlLXdpZHRoLCBpbml0aWFsLXNjYWxlPTEuMCwgbWF4aW11bS1zY2FsZT0xLjAsIHVzZXItc2Nh
bGFibGU9bm8iIC8+CjxzdHlsZT4KYnV0dG9uIHsgZm9udC1zaXplOiAyMDAlOyB9Cjwvc3R5bGU+
Cgk8L2hlYWQ+Cgk8Ym9keT4KCQk8YnV0dG9uIGlkPSJ0ZXN0Ij50ZXN0PC9idXR0b24+CgkJPGJ1
dHRvbiBvbmNsaWNrPSJqYXZhc2NyaXB0OmNsZWFyTG9nKCkiPmNsZWFyIGxvZzwvYnV0dG9uPgoJ
CTxwIGlkPSJibGFoIj48L3A+Cgk8c2NyaXB0IHR5cGU9InRleHQvamF2YXNjcmlwdCI+Cgpjb25z
dCBwID0gZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoJ2JsYWgnKTsKCmZ1bmN0aW9uIGNsZWFyTG9n
KCkgewoJcC50ZXh0Q29udGVudCA9ICcnOwp9CgpmdW5jdGlvbiBjYWxsYmFjayhldikgewoJcC5p
bm5lckhUTUwgKz0gYCR7ZXYudHlwZX08YnIvPmA7Cn0KCmNvbnN0IGIgPSBkb2N1bWVudC5nZXRF
bGVtZW50QnlJZCgndGVzdCcpOwpjb25zdCBldmVudHMgPSBbJ2NsaWNrJywgJ3BvaW50ZXJkb3du
JywgJ3BvaW50ZXJ1cCcsICdkYmxjbGljaycsICdtb3VzZW1vdmUnLCAnbW91c2Vkb3duJywgJ21v
dXNldXAnXTsKZm9yIChjb25zdCBldiBvZiBldmVudHMpCgliLmFkZEV2ZW50TGlzdGVuZXIoZXYs
IGNhbGxiYWNrKTsKCTwvc2NyaXB0PgoJPC9ib2R5Pgo8L2h0bWw+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>