<?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>202287</bug_id>
          
          <creation_ts>2019-09-26 14:12:32 -0700</creation_ts>
          <short_desc>pointerdown events are not fired for clicks that follow a drag&amp;drop.</short_desc>
          <delta_ts>2026-01-12 09:08:07 -0800</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 Technology Preview</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>macOS 10.14</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Aurélien Roy">aurelien_roy</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>7raivis</cc>
    
    <cc>alexreardon</cc>
    
    <cc>b.houdusse</cc>
    
    <cc>blesa</cc>
    
    <cc>bumblebee.zizka</cc>
    
    <cc>graouts</cc>
    
    <cc>hi</cc>
    
    <cc>jc.dafko</cc>
    
    <cc>jeroenwienk</cc>
    
    <cc>lvegerano422</cc>
    
    <cc>rsnow</cc>
    
    <cc>seva</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1574623</commentid>
    <comment_count>0</comment_count>
    <who name="Aurélien Roy">aurelien_roy</who>
    <bug_when>2019-09-26 14:12:32 -0700</bug_when>
    <thetext>Bug confirmed on stable releases of :
 - Safari 13.0.0 / Mojave 10.14.6
 - Safari 13.0.1 / Mojave 10.14.6

Overview :

&quot;pointerdown&quot; events are not fired for clicks that follow a drag&amp;drop.

How to reproduce :

- Add an event listener to a draggable DOM element for &quot;pointerdown&quot; event.
- If you click on it, the event will fre.
- Drag the element and release it.
- The next time you will click on it, &quot;pointerdown&quot; event won&apos;t fire.
- Following clicks will work again until the next drag&amp;drop.

Codepen : https://codepen.io/Tlokuus/pen/JjPVrLy


This causes some commonly used JS libraries do not work propertly, for instance :
 https://github.com/SortableJS/Sortable/issues/1571</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1574705</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-09-26 19:53:04 -0700</bug_when>
    <thetext>&lt;rdar://problem/55768441&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1575258</commentid>
    <comment_count>2</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2019-09-30 08:06:45 -0700</bug_when>
    <thetext>The &quot;mousedown&quot; and &quot;click&quot; events are fired as expected, odd!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1575494</commentid>
    <comment_count>3</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2019-10-01 04:40:14 -0700</bug_when>
    <thetext>We&apos;re actually dispatching a &quot;pointermove&quot; event instead of a &quot;pointerdown&quot; event because we believe the pointer is still pressed in PointerCaptureController::pointerEventForMouseEvent():

        // We&apos;re already active and getting another mousedown, this means that we should dispatch
        // a pointermove event and let the button state show the newly depressed button.
        if (type == names.mousedownEvent &amp;&amp; capturingData.pointerIsPressed)
            return PointerEvent::create(names.pointermoveEvent, button, mouseEvent);

We must not clear the pointerIsPressed state during drag-and-drop.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1625122</commentid>
    <comment_count>4</comment_count>
    <who name="">lvegerano422</who>
    <bug_when>2020-03-03 10:38:54 -0800</bug_when>
    <thetext>Anyone knows the status of this bug? This is very alive in Safari 13.0.5</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1679701</commentid>
    <comment_count>5</comment_count>
    <who name="Binyamin">7raivis</who>
    <bug_when>2020-08-11 22:30:27 -0700</bug_when>
    <thetext>This bug is breaking compatibility to different libraries, for example https://github.com/SortableJS/Sortable/issues/1571</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1705593</commentid>
    <comment_count>6</comment_count>
    <who name="George Zizka">bumblebee.zizka</who>
    <bug_when>2020-11-08 10:43:58 -0800</bug_when>
    <thetext>This issue still persist even in Safari 14 Preview</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1868456</commentid>
    <comment_count>7</comment_count>
    <who name="Rob Snow">rsnow</who>
    <bug_when>2022-05-12 10:04:14 -0700</bug_when>
    <thetext>Any status? this is still present in 15.4 and is causing us grief in our library react-aria</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2013059</commentid>
    <comment_count>8</comment_count>
    <who name="JC Franco">jc.dafko</who>
    <bug_when>2024-02-12 23:10:34 -0800</bug_when>
    <thetext>I am able to reproduce with v17.2.1 (19617.1.17.11.12).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2056770</commentid>
    <comment_count>9</comment_count>
    <who name="Tomas Blesa">blesa</who>
    <bug_when>2024-08-31 03:42:55 -0700</bug_when>
    <thetext>The bug is still there in 17.6 (19618.3.11.11.5)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2060613</commentid>
    <comment_count>10</comment_count>
    <who name="">alexreardon</who>
    <bug_when>2024-09-16 17:17:46 -0700</bug_when>
    <thetext>I raised a (duplicate) bug for this issue, not realising a bug report already existed: https://bugs.webkit.org/show_bug.cgi?id=279749</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2062702</commentid>
    <comment_count>11</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2024-09-24 03:32:38 -0700</bug_when>
    <thetext>*** Bug 279749 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2145192</commentid>
    <comment_count>12</comment_count>
    <who name="Jeroen Wienk">jeroenwienk</who>
    <bug_when>2025-09-23 03:38:08 -0700</bug_when>
    <thetext>Will this ever get fixed? It&apos;s been 6 years.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>