<?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>53341</bug_id>
          
          <creation_ts>2011-01-28 15:44:36 -0800</creation_ts>
          <short_desc>Changing CSS cursor style doesn’t have any effect while the mouse is down.</short_desc>
          <delta_ts>2018-08-07 04:39:37 -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>CSS</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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>
          <dependson>100550</dependson>
    
    <dependson>101857</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Simon Fraser (smfr)">simon.fraser</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aivopaas</cc>
    
    <cc>darin</cc>
    
    <cc>dbates</cc>
    
    <cc>dglazkov</cc>
    
    <cc>dpashk</cc>
    
    <cc>rbyers</cc>
    
    <cc>syoichi</cc>
    
    <cc>vepomoc</cc>
    
    <cc>vsync.design</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>341811</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2011-01-28 15:44:36 -0800</bug_when>
    <thetext>From https://bugs.webkit.org/show_bug.cgi?id=14344#c13
Changing CSS cursor style doesn’t have any effect while the mouse is down.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>762109</commentid>
    <comment_count>1</comment_count>
    <who name="Rick Byers">rbyers</who>
    <bug_when>2012-11-08 13:21:02 -0800</bug_when>
    <thetext>Note that I&apos;m about to land infrastructure for automated testing of mouse cursor changes in bug 100550.  This should make it possible to write layout tests for this scenario.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>762283</commentid>
    <comment_count>2</comment_count>
    <who name="Aivo Paas">aivopaas</who>
    <bug_when>2012-11-08 16:08:19 -0800</bug_when>
    <thetext>The reason why cursors are not changed when mouse is down is that changing cursors is done with faking a mousemove event (that&apos;s bringing up bug 85343). And because the fake event is not fired while a mouse button is pressed, there will be no cursor change happening. I have fixed that - replaced the use of fake mousemove event with a proper cursor changing logic. I will propose a patch as soon as I have my environment set up correctly to review my own code and hopefully even add some tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>763021</commentid>
    <comment_count>3</comment_count>
    <who name="Aivo Paas">aivopaas</who>
    <bug_when>2012-11-09 07:55:01 -0800</bug_when>
    <thetext>Proposed a patch on related bug https://bugs.webkit.org/show_bug.cgi?id=85343 that also fixes the bug reported here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>763798</commentid>
    <comment_count>4</comment_count>
      <attachid>173491</attachid>
    <who name="Aivo Paas">aivopaas</who>
    <bug_when>2012-11-11 00:07:45 -0800</bug_when>
    <thetext>Created attachment 173491
Moved test to the fix in 101857</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>763803</commentid>
    <comment_count>5</comment_count>
      <attachid>173491</attachid>
    <who name="Build Bot">buildbot</who>
    <bug_when>2012-11-11 00:39:16 -0800</bug_when>
    <thetext>Comment on attachment 173491
Moved test to the fix in 101857

Attachment 173491 did not pass mac-ews (mac):
Output: http://queues.webkit.org/results/14665611

New failing tests:
fast/events/mouse-cursor-change.html
fast/events/overflow-scroll-fake-mouse-move.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>763835</commentid>
    <comment_count>6</comment_count>
      <attachid>173491</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-11-11 06:02:27 -0800</bug_when>
    <thetext>Comment on attachment 173491
Moved test to the fix in 101857

Attachment 173491 did not pass chromium-ews (chromium-xvfb):
Output: http://queues.webkit.org/results/14786807

New failing tests:
fast/events/mouse-cursor-change.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>770278</commentid>
    <comment_count>7</comment_count>
      <attachid>173491</attachid>
    <who name="Rick Byers">rbyers</who>
    <bug_when>2012-11-18 19:12:52 -0800</bug_when>
    <thetext>Comment on attachment 173491
Moved test to the fix in 101857

View in context: https://bugs.webkit.org/attachment.cgi?id=173491&amp;action=review

&gt; LayoutTests/fast/events/mouse-cursor-change.html:40
&gt; +    }, 1);

Why 1ms here?  If we can&apos;t guarantee that this works with 0, then it seems like 1ms could still cause flakiness (eg. under load) and we should use a different mechanism instead (such as testing the cursor from inside event handler functions).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>770451</commentid>
    <comment_count>8</comment_count>
    <who name="Aivo Paas">aivopaas</who>
    <bug_when>2012-11-19 01:06:08 -0800</bug_when>
    <thetext>(In reply to comment #7)
&gt; (From update of attachment 173491 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=173491&amp;action=review
&gt; 
&gt; &gt; LayoutTests/fast/events/mouse-cursor-change.html:40
&gt; &gt; +    }, 1);
&gt; 
&gt; Why 1ms here?  If we can&apos;t guarantee that this works with 0, then it seems like 1ms could still cause flakiness (eg. under load) and we should use a different mechanism instead (such as testing the cursor from inside event handler functions).

Tests combined with fix and timeouts set to 0 will come soon in updated patch for Bug 101857.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>834431</commentid>
    <comment_count>9</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2013-02-15 15:54:14 -0800</bug_when>
    <thetext>It’s often incorrect to change the cursor based on what’s under the mouse during a drag. For example, you wouldn’t want to change the cursor from an arrow to a pointing finger just because you were over a link. I don’t know what the CSS specification says about this. I am concerned that this change, despite being worded as a bug fix, could make behavior worse for some common cases.

It’s not entirely an implementation quirk that things work this way.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>834678</commentid>
    <comment_count>10</comment_count>
    <who name="Aivo Paas">aivopaas</who>
    <bug_when>2013-02-16 01:27:06 -0800</bug_when>
    <thetext>(In reply to comment #9)
&gt; It’s often incorrect to change the cursor based on what’s under the mouse during a drag. For example, you wouldn’t want to change the cursor from an arrow to a pointing finger just because you were over a link. I don’t know what the CSS specification says about this. I am concerned that this change, despite being worded as a bug fix, could make behavior worse for some common cases.
&gt; 
&gt; It’s not entirely an implementation quirk that things work this way.

Sure, when just dragging around, but when cursor change is initiated by user code code (cursor value changed in style, class changed or something like that) then it isn&apos;t it incorrect to not reflect that change?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>834782</commentid>
    <comment_count>11</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2013-02-16 12:57:30 -0800</bug_when>
    <thetext>(In reply to comment #10)
&gt; (In reply to comment #9)
&gt; &gt; It’s often incorrect to change the cursor based on what’s under the mouse during a drag. For example, you wouldn’t want to change the cursor from an arrow to a pointing finger just because you were over a link. I don’t know what the CSS specification says about this. I am concerned that this change, despite being worded as a bug fix, could make behavior worse for some common cases.
&gt; &gt; 
&gt; &gt; It’s not entirely an implementation quirk that things work this way.
&gt; 
&gt; Sure, when just dragging around, but when cursor change is initiated by user code code (cursor value changed in style, class changed or something like that) then it isn&apos;t it incorrect to not reflect that change?

Well, if the web page changes style during the drag process, I could imagine one design choice where the cursor changes to match the style where the drag started. Probably not to match the style where the mouse happens to be.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>834804</commentid>
    <comment_count>12</comment_count>
    <who name="Aivo Paas">aivopaas</who>
    <bug_when>2013-02-16 13:34:48 -0800</bug_when>
    <thetext>(In reply to comment #11)
&gt; Well, if the web page changes style during the drag process, I could imagine one design choice where the cursor changes to match the style where the drag started. Probably not to match the style where the mouse happens to be.

There&apos;s the drag that&apos;s handled by browser and EventHandler doesn&apos;t seem to handle those cursors ad all.

And then there&apos;s the &quot;drag&quot; that is handled by web developer.
Usually it involves cancelling the default action on mousedown to disable text selection and drag-and-drop and whatever the browser would do by itself.
Then it should be completely developers choice, how the page acts. For example, if it is a drawing app, it might wan&apos;t to display a different cursor while user is &quot;draggin&quot; around (drawing, deleting, dragging a selection rectangle, etc.)

At the moment it is not possible to change the cursor after user has pressed mouse button down, because cursor change in CSS is going through a fake mousemove event, which, in case there is a mouse button pressed down, is just cancelled. So, WebKit has made a strong design choice and a web developer has, at the moment, no way to work around it.

Do you think this is appropriate? (IE and FF allow changing cursor while a mouse button is down).
Do web devs really have to use cursor:none and use a positioned div to display the correct cursor for their app?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>834821</commentid>
    <comment_count>13</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2013-02-16 14:03:51 -0800</bug_when>
    <thetext>(In reply to comment #12)
&gt; At the moment it is not possible to change the cursor after user has pressed mouse button down

Yes, that’s what this bug is about.

&gt; Do you think this is appropriate? (IE and FF allow changing cursor while a mouse button is down).
&gt; Do web devs really have to use cursor:none and use a positioned div to display the correct cursor for their app?

I think you’re overreacting here. We’re trying to decide *what* change to make. I suggested an option where the cursor could indeed be changed.

I know you really want this feature to work in WebKit. I want to make sure that when adding it we don’t make existing good behavior worse. It’s possible that both IE and Firefox have some solution to the problem of unwanted cursor changes during drags. Perhaps someone should test them to see.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>834966</commentid>
    <comment_count>14</comment_count>
    <who name="Aivo Paas">aivopaas</who>
    <bug_when>2013-02-17 01:42:24 -0800</bug_when>
    <thetext>(In reply to comment #13)
&gt; I think you’re overreacting here. We’re trying to decide *what* change to make. I suggested an option where the cursor could indeed be changed.

Sorry, I didn&apos;t read that out from your comments, maybe the wording wasn&apos;t clear.

Currently WebKit does update cursor on moving mouse while a button is pressed, but does not if mouse is idle. So, the patch in bug 101857 only changes behavior when mouse button is pressed and mouse not moved. To cause a cursor change under those conditions you can do it by a timer or in mousedown handler. Both cases are not reflected until you move the mouse and there should be no question about if it is a bug or not. And the patch doesn&apos;t basically change anything more than bypass the check that disabled updating cursor while button is held down. Regular mousemove didn&apos;t have that check but the fake mousemove event used on style changes, does.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1369597</commentid>
    <comment_count>15</comment_count>
    <who name="Yair Even Or">vsync.design</who>
    <bug_when>2017-11-08 14:13:22 -0800</bug_when>
    <thetext>Hey good people, what&apos;s happening with this bug?

Nobody gives it the feels it requires... 
I came into a situation in dire of needing this fixed :(

&quot;Distilled&quot; Bug Demo:
http://jsbin.com/geqacibofu/edit?html,css,js,output

Thanks for taking the time coming back to this one!
hope it&apos;s easy to fix..</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1369603</commentid>
    <comment_count>16</comment_count>
    <who name="Yair Even Or">vsync.design</who>
    <bug_when>2017-11-08 14:17:27 -0800</bug_when>
    <thetext>Very ODD. now it does work. I fiddled with this for 2 days! so odd.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>173491</attachid>
            <date>2012-11-11 00:07:45 -0800</date>
            <delta_ts>2012-11-18 19:12:52 -0800</delta_ts>
            <desc>Moved test to the fix in 101857</desc>
            <filename>bug-53341-20121111100542.patch</filename>
            <type>text/plain</type>
            <size>4273</size>
            <attacher name="Aivo Paas">aivopaas</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTM0MTcwCmRpZmYgLS1naXQgYS9MYXlvdXRUZXN0cy9DaGFu
Z2VMb2cgYi9MYXlvdXRUZXN0cy9DaGFuZ2VMb2cKaW5kZXggMDQ3YjllMzI5OTRiYTU3M2I3MmFi
YmVkYzU4N2NlNzE1ZTY4NzFiZS4uY2RjOTAxNDQwNTM5ZTFjYmVjYzAyYjE5OWRlMmY3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ZXN0KCk7Cit9CisKKzwvc2NyaXB0PgorPHNjcmlwdCBzcmM9Ii4uLy4uL2Zhc3QvanMv
cmVzb3VyY2VzL2pzLXRlc3QtcG9zdC5qcyI+PC9zY3JpcHQ+Cis8L2JvZHk+Cis8L2h0bWw+Cg==
</data>
<flag name="commit-queue"
          id="188197"
          type_id="3"
          status="-"
          setter="buildbot"
    />
          </attachment>
      

    </bug>

</bugzilla>