<?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>199977</bug_id>
          
          <creation_ts>2019-07-19 23:48:21 -0700</creation_ts>
          <short_desc>touch-action on &lt;canvas&gt; has no effect</short_desc>
          <delta_ts>2019-08-12 02:51:30 -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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>200205</dup_id>
          
          <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 name="Antoine Quint">graouts</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>koivisto</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1554471</commentid>
    <comment_count>0</comment_count>
      <attachid>374543</attachid>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2019-07-19 23:48:21 -0700</bug_when>
    <thetext>Created attachment 374543
Test

See the attached layout test which simply sets &quot;touch-action: none&quot; on a lone &lt;canvas&gt; element under the body. If I run this test I get this output:

(GraphicsLayer
  (anchor 0.00 0.00)
  (bounds 800.00 600.00)
  (children 1
    (GraphicsLayer
      (bounds 800.00 600.00)
      (contentsOpaque 1)
      (drawsContent 1)
      (backgroundColor #FFFFFF)
      (event region
        (rect (0,0) width=800 height=600)
      )
    )
  )
)

Now, if I change the &lt;canvas&gt; to a &lt;div&gt;, I get:

(GraphicsLayer
  (anchor 0.00 0.00)
  (bounds 800.00 600.00)
  (children 1
    (GraphicsLayer
      (bounds 800.00 600.00)
      (contentsOpaque 1)
      (drawsContent 1)
      (backgroundColor #FFFFFF)
      (event region
        (rect (0,0) width=800 height=600)
        (touch-action
          (none          
            (rect (8,8) width=100 height=100)
          )
        )
      )
    )
  )
)

Something is wrong with &lt;canvas&gt; elements and touch-action.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1554472</commentid>
    <comment_count>1</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2019-07-19 23:48:58 -0700</bug_when>
    <thetext>&lt;rdar://problem/53331224&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1560372</commentid>
    <comment_count>2</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2019-08-12 02:51:30 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 200205 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>374543</attachid>
            <date>2019-07-19 23:48:21 -0700</date>
            <delta_ts>2019-07-19 23:48:21 -0700</delta_ts>
            <desc>Test</desc>
            <filename>touch-action-region-canvas.html</filename>
            <type>text/html</type>
            <size>482</size>
            <attacher name="Antoine Quint">graouts</attacher>
            
              <data encoding="base64">PGh0bWw+CjxzdHlsZT4KICAgIGNhbnZhcyB7CiAgICAgICAgdG91Y2gtYWN0aW9uOiBub25lOwog
ICAgICAgIHdpZHRoOiAxMDBweDsKICAgICAgICBoZWlnaHQ6IDEwMHB4OwogICAgfQo8L3N0eWxl
Pgo8c2NyaXB0Pgp3aW5kb3cub25sb2FkID0gZnVuY3Rpb24gKCkgewogICAgaWYgKHdpbmRvdy50
ZXN0UnVubmVyKQogICAgICAgIHRlc3RSdW5uZXIuZHVtcEFzVGV4dCgpOwogICAgaWYgKHdpbmRv
dy5pbnRlcm5hbHMpCiAgICAgICAgcmVzdWx0cy5pbm5lclRleHQgPSBpbnRlcm5hbHMubGF5ZXJU
cmVlQXNUZXh0KGRvY3VtZW50LCBpbnRlcm5hbHMuTEFZRVJfVFJFRV9JTkNMVURFU19FVkVOVF9S
RUdJT04gfCBpbnRlcm5hbHMuTEFZRVJfVFJFRV9JTkNMVURFU19ST09UX0xBWUVSX1BST1BFUlRJ
RVMpOwp9Cjwvc2NyaXB0Pgo8Ym9keT4KPGNhbnZhcz48L2NhbnZhcz4KPHByZSBpZD0icmVzdWx0
cyI+PC9wcmU+CjwvYm9keT4KPC9odG1sPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>