[Webkit-unassigned] [Bug 199977] New: touch-action on <canvas> has no effect

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 19 23:48:21 PDT 2019


https://bugs.webkit.org/show_bug.cgi?id=199977

            Bug ID: 199977
           Summary: touch-action on <canvas> has no effect
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: UI Events
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: graouts at apple.com

Created attachment 374543

  --> https://bugs.webkit.org/attachment.cgi?id=374543&action=review

Test

See the attached layout test which simply sets "touch-action: none" on a lone <canvas> 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 <canvas> to a <div>, 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 <canvas> elements and touch-action.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190720/d2524c47/attachment.html>


More information about the webkit-unassigned mailing list