<?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>296943</bug_id>
          
          <creation_ts>2025-08-05 11:36:54 -0700</creation_ts>
          <short_desc>Apple Pencil Pro Barrel Roll / Twist support</short_desc>
          <delta_ts>2025-09-02 21:41:21 -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>NEW</bug_status>
          <resolution></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>
          <dependson>298276</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Vaughan">heavypoly</reporter>
          <assigned_to name="Abrar Rahman Protyasha">a_protyasha</assigned_to>
          <cc>a_protyasha</cc>
    
    <cc>lily_spiniolas</cc>
    
    <cc>thorton</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2134451</commentid>
    <comment_count>0</comment_count>
    <who name="Vaughan">heavypoly</who>
    <bug_when>2025-08-05 11:36:54 -0700</bug_when>
    <thetext>Can we have support for Apple Pencil Pro Barrel roll in WebView and SafarI?
It would be great if used existing web pointer event.twist alongside event.tiltX and event.tiltY

Not as urgent:  expose other Apple Pencil Pro features to web, in order of importance/urgency:

2.  Apple Pencil hover.¹ Preview exactly where your Apple Pencil will touch down on your display and see a virtual shadow of your tool. So you can write, sketch, and illustrate with even greater precision.
3.  Haptic feedback. A custom haptic engine provides precise feedback that you can feel. When you squeeze or double‑tap, you’ll feel a light pulse confirming the action.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2134460</commentid>
    <comment_count>1</comment_count>
    <who name="Vaughan">heavypoly</who>
    <bug_when>2025-08-05 11:54:26 -0700</bug_when>
    <thetext>Also, ideally the rotation would behave the same as Wacom art pen barrel rotation (on mac) so that cross platform apps behave the same. If that&apos;s not possible, please provide some way for developers to detect if the input is coming from apple pencil vs wacom pen so that appropriate transformations to barrel roll can be made to make them consistent.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2135965</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-08-12 11:37:24 -0700</bug_when>
    <thetext>&lt;rdar://problem/158150118&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2140417</commentid>
    <comment_count>3</comment_count>
    <who name="Lily Spiniolas">lily_spiniolas</who>
    <bug_when>2025-09-02 15:49:01 -0700</bug_when>
    <thetext>Thank you for the report. For your second point, we already dispatch hover events for Apple Pencil hover. If this is not behaving as expected, please file a separate bug report. Please file a separate bug report for point 3, as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2140471</commentid>
    <comment_count>4</comment_count>
    <who name="Vaughan">heavypoly</who>
    <bug_when>2025-09-02 19:20:25 -0700</bug_when>
    <thetext>Sorry I meant to specify Barrel Roll/ Tilt support while hovering pen (right now pointermove does not show tilt or roll).  Should that be a separate report or would that fit here?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2140512</commentid>
    <comment_count>5</comment_count>
    <who name="Lily Spiniolas">lily_spiniolas</who>
    <bug_when>2025-09-02 21:41:21 -0700</bug_when>
    <thetext>No worries, thank you for clarifying! I think a separate report would be ideal.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>