Re: Issue 26723 in chromium: Mouse cursor doesn't change when mouse-idling

337 views
Skip to first unread message

chro...@googlecode.com

unread,
Feb 7, 2010, 5:23:30 AM2/7/10
to chromi...@chromium.org

Comment #2 on issue 26723 by kulakov74: Mouse cursor doesn't change when
mouse-idling
http://code.google.com/p/chromium/issues/detail?id=26723

I confirm the bug with Chrome 4 / Safari 4

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

chro...@googlecode.com

unread,
Feb 7, 2010, 7:40:57 AM2/7/10
to chromi...@chromium.org

Comment #3 on issue 26723 by kulakov74: Mouse cursor doesn't change when
mouse-idling
http://code.google.com/p/chromium/issues/detail?id=26723

I confirm the bug with Chrome 4 / Safari 4.
At the same time I can see this bug with FF3.6 and with IE6 as well ... :(
See http://www.pharmacycharts.com/safari-cursor-bug.html where I made a
similar test, a
paragraph changes its cursor for wait for 1 sec, during which it also has
yellow BG.

chro...@googlecode.com

unread,
Jul 4, 2010, 10:13:14 AM7/4/10
to chromi...@chromium.org

Comment #6 on issue 26723 by charuru2009: Mouse cursor doesn't change when
mouse-idling
http://code.google.com/p/chromium/issues/detail?id=26723

Important issue, please fix.

chro...@googlecode.com

unread,
Aug 31, 2010, 9:00:13 AM8/31/10
to chromi...@chromium.org

Comment #9 on issue 26723 by aaronkelly6: Mouse cursor doesn't change when
mouse-idling
http://code.google.com/p/chromium/issues/detail?id=26723

Just come across this. It is indeed only evident in chrome, the other
browsers are fine. 9 months and still unconfirmed status? We need a comment
please google?

chro...@googlecode.com

unread,
Nov 21, 2010, 12:17:55 AM11/21/10
to chromi...@chromium.org

Comment #15 on issue 26723 by budcribar: Mouse cursor doesn't change when
mouse-idling
http://code.google.com/p/chromium/issues/detail?id=26723

I have seen the same problem. The cursor works correctly in IE8 and FF 3.5
but not on Chrome or Safari 5.0

chro...@googlecode.com

unread,
Dec 9, 2010, 10:05:49 PM12/9/10
to chromi...@chromium.org

Comment #18 on issue 26723 by qcho86: Mouse cursor doesn't change when
mouse-idling
http://code.google.com/p/chromium/issues/detail?id=26723

this is a confirmed error.

please verify!!

http://andem.freehostia.com/webkit-won-t-change-cursor-bug/

chro...@googlecode.com

unread,
Feb 4, 2011, 9:41:46 AM2/4/11
to chromi...@chromium.org

Comment #20 on issue 26723 by arun.geo...@gmail.com: Mouse cursor doesn't

All, I have a solution for this . A nitty gritty solution .See my blog guys.

http://arunmobc.blogspot.com/2011/02/cursor-not-changing-issue.html

chro...@googlecode.com

unread,
Feb 7, 2011, 7:05:34 AM2/7/11
to chromi...@chromium.org

Comment #23 on issue 26723 by arun.geo...@gmail.com: Mouse cursor doesn't

Sorry sogeeky, by all browsers I meant FF(Win/Mac), IE > 6,Safari(Mac).
Ofcourse :). The flicker will be there , but I think if you tweak the
shake effect you can reduce the flicker a bit.

chro...@googlecode.com

unread,
Feb 7, 2011, 7:09:39 AM2/7/11
to chromi...@chromium.org

Comment #24 on issue 26723 by arun.geo...@gmail.com: Mouse cursor doesn't

da..@sogeeky.net. Can you please comment on my original blog.

chro...@googlecode.com

unread,
Feb 8, 2011, 5:58:45 AM2/8/11
to chromi...@chromium.org

Comment #25 on issue 26723 by arun.geo...@gmail.com: Mouse cursor doesn't

Hi David, I don't see this in Chrome9 . Press F12 on this window and go to
the javascript console and execute the following. And immediately move the
cursor (before 3 seconds) and wait . You can see the cursor changing to
default. Are talking about Chrome9 on Mac?

document.body.style.cursor="wait";
setTimeout(function(){document.body.style.cursor="default";},3000);


chro...@googlecode.com

unread,
Feb 8, 2011, 6:02:46 AM2/8/11
to chromi...@chromium.org

Comment #26 on issue 26723 by arun.geo...@gmail.com: Mouse cursor doesn't

Hi David, I don't see the issue in Chrome9 . Press Ctrl+Shift+I on this
window and click the icon with greater than arrow and triple equal to and
go to the javascript console and execute the following. After executing
this script move the cursor (before 3 seconds) to an area where the cursor
is in "wait" state and don't move the mouse after this. You can see the
cursor changing to default without moving the mouse . Are talking about

chro...@googlecode.com

unread,
Feb 8, 2011, 6:23:02 AM2/8/11
to chromi...@chromium.org

Comment #27 on issue 26723 by Dip...@mail.ru: Mouse cursor doesn't change
when mouse-idling
http://code.google.com/p/chromium/issues/detail?id=26723

arun.geo, I don't know about Mac but the issue is still present in Chrome9
under Linux. What a pain...

chro...@googlecode.com

unread,
Feb 8, 2011, 6:27:05 AM2/8/11
to chromi...@chromium.org

Comment #28 on issue 26723 by da...@sogeeky.net: Mouse cursor doesn't

Yes, chrome 9 on Mac. I'll try your latest and report back. I'll also test
the previous solution on windows.

chro...@googlecode.com

unread,
Feb 8, 2011, 7:11:58 AM2/8/11
to chromi...@chromium.org

Comment #29 on issue 26723 by arun.geo...@gmail.com: Mouse cursor doesn't

Is it a big deal to fix this on Chrome. I heard they follow good
development practices and has a release almost every 6months like 6,7,8 and
now 9 . Why can't Chrome fix it.May be we are asking too much. I dont know
how they are using Webkit, is it a common lib that they dont' want to break
just to fix this bug?

chro...@googlecode.com

unread,
Feb 25, 2011, 3:10:35 AM2/25/11
to chromi...@chromium.org

Comment #31 on issue 26723 by scrypton...@gmail.com: Mouse cursor doesn't

A year since this has been reported... I've noticed that chrome can change
the cursor while loading content, so why the same event can't be triggered
from JavaScript?

chro...@googlecode.com

unread,
Mar 2, 2011, 10:14:26 AM3/2/11
to chromi...@chromium.org

Comment #32 on issue 26723 by Dip...@mail.ru: Mouse cursor doesn't change
when mouse-idling
http://code.google.com/p/chromium/issues/detail?id=26723

I've found a partial workaround on this issue (tested in Chrome 9 in Ubuntu
Linux) similar to those mentioned by David and Arun. If you have a
scrollable container div on the page (I tested with a div with overflow:
hidden) and you need to change mouse cursor when the mouse is over that div
you can simply change its scrollLeft property, i.e.:

myDiv.scrollLeft +=1;
myDiv.scrollLeft -=1; // to get it back

And there doesn't seem to be any flicker.

I got this idea when I saw this SmoothScroll jQuery plugin:
http://www.smoothdivscroll.com/basicDemo.htm
You can see that in that demo the mouse cursor changes when you place it on
the right/left side of the image gallery and it turns back to default by
itself if there's nowhere left to scroll. Just place the cursor to the
right side and don't move it until it reaches the end.

There is, however, a limitation: this doesn't work if mouse button is
pressed. So still no solution if you need to change the cursor on mousedown
(which IMHO is common like when doing hand-dragging).

P.S. I am surprised that the status of this bug still
remains 'Unconfirmed'. Please give it some attention!

chro...@googlecode.com

unread,
Mar 3, 2011, 3:20:17 PM3/3/11
to chromi...@chromium.org

Comment #37 on issue 26723 by da...@sogeeky.net: Mouse cursor doesn't

I see what I did wrong. I had no content inside my div that would trigger
an overflow, so the browser was ignoring the scroll since there was nothing
to scroll. This simple example works great (just be sure to move the mouse
so the cursor appears in the first place):


<html>
<body>
<div id="mouseMask" style="width: 100%; height: 100%; overflow: hidden;">
<div style="width: 200%; height: 200%;">
</div>
</div>
<script>
function changeIt() {
document.body.style.cursor = "progress";
document.getElementById("mouseMask").scrollLeft = 1;
document.getElementById("mouseMask").scrollLeft = 0;
}

window.setTimeout("changeIt()", 5000);
</script>
</body>
</html>

chro...@googlecode.com

unread,
Mar 3, 2011, 4:36:22 PM3/3/11
to chromi...@chromium.org

Comment #38 on issue 26723 by da...@sogeeky.net: Mouse cursor doesn't

Also note that this workaround works in Safari 5 as well (but not Safari
4). That's good enough for me.

chro...@googlecode.com

unread,
Mar 4, 2011, 9:14:19 AM3/4/11
to chromi...@chromium.org

Comment #40 on issue 26723 by tom.maec...@gmail.com: Mouse cursor doesn't

Comment 39 works unless the cursor is above input fields.

chro...@googlecode.com

unread,
Apr 28, 2011, 4:46:44 AM4/28/11
to chromi...@chromium.org

Comment #44 on issue 26723 by Dip...@mail.ru: Mouse cursor doesn't change
when mouse-idling
http://code.google.com/p/chromium/issues/detail?id=26723

Yeah it got better in Chrome 11 but sadly the problem didn't go away
completely... While everything now works as expected in simple case, it
doesn't work if you are holding a mouse button.
So unfortunately it's still impossible to change the mouse cursor
on 'mousedown' event. It may be essential in rich web applications.
I've made another test case to illustrate the issue:
http://jsfiddle.net/dipish/WQ8RQ/
Feel free to play with it, I wish there were some kind of workaround!

chro...@googlecode.com

unread,
Jun 18, 2011, 1:49:27 AM6/18/11
to chromi...@chromium.org

Comment #47 on issue 26723 by nawazi...@yahoo.com: Mouse cursor doesn't

function mouse_move(){
if (mouse_down==true){
my_div.style.cursor="hand"
}
}

The script still not work in Chrome. Working fine in IE.
Chrome show 'Text' cursor when mousemove during mousedown.

chro...@googlecode.com

unread,
Dec 5, 2011, 6:54:28 AM12/5/11
to chromi...@chromium.org

Comment #49 on issue 26723 by Virux1...@gmail.com: Mouse cursor doesn't

Yes, I need this fixed as well.
I'm designing a card game where you can drag-and-drop, and the mouse will
not change to the grab hand if the mouse is being held(clicked).
So changing the mouse inside of onMouseDown() fails still.

chro...@googlecode.com

unread,
Mar 20, 2012, 7:43:54 PM3/20/12
to chromi...@chromium.org

Comment #51 on issue 26723 by aapo.pus...@gmail.com: Mouse cursor doesn't

There is another problem, which I believe to be related. I have a
server-side pagemap on a page. The cursor is a crosshair + on the map. The
user clicks on the map and the page reloads with some content changed. The
map reloads with its content chaned, but it is located in the same place.

The cursor is an arrow and it will not change to crosshair when moved. It
only changes when the cursor is moved off the map and then back.

So, briefly: the cursor does not change when content is loaded "under" it,
even if there is a pageload.

chro...@googlecode.com

unread,
Aug 8, 2012, 10:07:39 AM8/8/12
to chromi...@chromium.org

Comment #52 on issue 26723 by vpdoppen...@gmail.com: Mouse cursor doesn't
How is this issue still unconfirmed, nearly three years after it was
reported? The issue was first reported for Chrome version 4, yet it is
still bothering me every day in Chrome version 21.

In my opinion, this is a very critical issue. Simple, yet crucial, features
such as transparent overlays with a wait-cursor for when the browser is
busy are impossible in Chrome. Chrome requires the user to move the cursor
around during the entire waiting period, just to be able to tell when the
browser is ready again. Users that are unaware of this issue will be
waiting indefinitely.

At least confirm the issue and give us a sign that it has been/is being
looked at.

chro...@googlecode.com

unread,
Aug 11, 2012, 10:35:36 AM8/11/12
to chromi...@chromium.org

Comment #55 on issue 26723 by davidpe...@gmail.com: Mouse cursor doesn't
@bugdroid1: When an important bug (lots of stars) is neglected for a very
long time, shouldn't that make the urgency go up instead of down?

chro...@googlecode.com

unread,
Oct 23, 2012, 5:58:59 PM10/23/12
to chromi...@chromium.org

Comment #56 on issue 26723 by e...@aneventapart.com: Mouse cursor doesn't
This may not be a bug, specification-wise: CSS2 through the latest
Selectors Level 4 draft all state, with very minor variations:

“The :hover pseudo-class applies while the user designates an element with
a pointing device, but does not necessarily activate it.”[1]

The bit about the user designating argues for WebKit doing exactly what it
does now, and Firefox et al. being in the wrong. Not conclusively, to my
mind, but the case is pretty easy to make. This is probably something that
needs to be cleared up by the CSS WG.


[1] See http://www.w3.org/TR/CSS2/selector.html#dynamic-pseudo-classes and
http://dev.w3.org/csswg/selectors4/#the-hover-pseudo.

chro...@googlecode.com

unread,
Oct 23, 2012, 9:09:30 PM10/23/12
to chromi...@chromium.org

Comment #58 on issue 26723 by e...@aneventapart.com: Mouse cursor doesn't
They at least seem to share a common cause, since “not moving the mouse
cursor” causes the problem in both cases. No?

chro...@googlecode.com

unread,
Oct 24, 2012, 4:52:29 AM10/24/12
to chromi...@chromium.org

Comment #59 on issue 26723 by dpa...@gmail.com: Mouse cursor doesn't change
when mouse-idling
http://code.google.com/p/chromium/issues/detail?id=26723

@Eric, even if it had to do anything with pseudo-classes, you are
misinterpreting the spec if you're suggesting that :hover and :active
pseudo-classes are mutually exclusive. They're not, and it's easy to test.
Just throw an element on the page and give it the following styles:

.block:hover {background: red;}
.block:active {outline: solid 10px blue;}

When you press the mouse over the block, it will gain a blue outline but
remain red because of the :hover pseudo-class. And this seems to work for
all CSS properties except cursor:
.block:active {cursor: pointer}

This will not change the cursor! Why? In the same way, trying to set the
cursor programmatically from JavaScript when the mouse is pressed doesn't
work either, as pointed out earlier:
my_div.style.cursor="pointer"; // doesn't work if mouse button is pressed


@laforge, why did you mark the bug as 'Unconfirmed'? I and other people
here provided clear test cases. You were unable to reproduce it? Please
comment.

chro...@googlecode.com

unread,
Oct 24, 2012, 10:31:17 AM10/24/12
to chromi...@chromium.org

Comment #60 on issue 26723 by Kozlowsk...@gmail.com: Mouse cursor doesn't
it appears that this issue is partially fixed; the specific case of out of
band updates from a background timer is fixed, it fails when ever a mouse
button is "down" or depressed...

see:
http://jsbin.com/equfor/1/edit

and try holding the mouse button down on the two boxes... close, but no
cigar

my chrome is: Version 23.0.1271.40 beta-m

chro...@googlecode.com

unread,
Oct 24, 2012, 11:11:20 AM10/24/12
to chromi...@chromium.org

Comment #61 on issue 26723 by dpa...@gmail.com: Mouse cursor doesn't change
when mouse-idling
http://code.google.com/p/chromium/issues/detail?id=26723

Yes, this was 'partially fixed' in Chrome 11.
See my comment #44
http://code.google.com/p/chromium/issues/detail?id=26723#c44

chro...@googlecode.com

unread,
Oct 26, 2012, 11:55:20 PM10/26/12
to chromi...@chromium.org

Comment #62 on issue 26723 by danya.po...@gmail.com: Mouse cursor doesn't
Faced with this bug.

Status: unconfirmed and 78 stars... I can not believe to my eyes...

chro...@googlecode.com

unread,
Oct 27, 2012, 2:40:31 PM10/27/12
to chromi...@chromium.org

Comment #63 on issue 26723 by dan...@viseztrance.com: Mouse cursor doesn't
I stumbled into this as well. I was setting a css class that changed the
pointer on mouse down. Moving the cursor during this time had no effect,
though it worked in Firefox. However, using preventDefault on the mouse
down event and moving the cursor, will properly display the css pointer.

chro...@googlecode.com

unread,
Oct 30, 2012, 5:56:46 AM10/30/12
to chromi...@chromium.org

Comment #64 on issue 26723 by stijndew...@gmail.com: Mouse cursor doesn't
Currently giving up on showing a 'busy' cursor due to this bug.
To be fair, IE also has this same bug, which makes it even more of a
no-go... But still I love Chrome and while I don;t mind bitching on IE, I
have done that for years :) , it's sad that Chrome is now one of the
browsers blocking my web projects innovation... Google please fix! :)

chro...@googlecode.com

unread,
Nov 1, 2012, 10:32:14 AM11/1/12
to chromi...@chromium.org

Comment #65 on issue 26723 by amcdani...@gmail.com: Mouse cursor doesn't
Having this issue as well.

When I do a mousedown and want to change the cursor after a duration (
500ms ) of the mousedown to a different cursor to represent a different
action the cursor does not update until I move the cursor.

chro...@googlecode.com

unread,
Nov 1, 2012, 10:44:48 AM11/1/12
to chromi...@chromium.org

Comment #66 on issue 26723 by danya.po...@gmail.com: Mouse cursor doesn't
maybe we have to report this issue to webkit bugtracker ?

chro...@googlecode.com

unread,
Nov 2, 2012, 4:29:18 AM11/2/12
to chromi...@chromium.org

Comment #67 on issue 26723 by jmend...@gmail.com: Mouse cursor doesn't
Well, does this happen on Safari?
If it does, we should.

chro...@googlecode.com

unread,
Nov 2, 2012, 5:29:02 AM11/2/12
to chromi...@chromium.org

Comment #68 on issue 26723 by danya.po...@gmail.com: Mouse cursor doesn't
Hmm. It seems the actual problem is that browser does not update cursor,
set on mousedown event, until mouseup event. You can even use setTimout,
but if a user does not release mouse button, cursor does not udate itself
(until mouseup).

Tested on Chrome Версия 22.0.1229.94 m and Safari Версия 6.0.1(8536.26.14).
So, we have to report to bugs.webkit.org ...

chro...@googlecode.com

unread,
Nov 2, 2012, 5:34:43 AM11/2/12
to chromi...@chromium.org

Comment #69 on issue 26723 by jmend...@gmail.com: Mouse cursor doesn't
Well, actually it doesn't change the cursor until the next *mouse event*.
A mouse event could me *move*, *drag*, *press* (mousedown), *release*
(mouseup), and the mousewheel (scroll).
Any of these events will cause the refresh to trigger.

chro...@googlecode.com

unread,
Nov 2, 2012, 5:46:00 AM11/2/12
to chromi...@chromium.org

Comment #70 on issue 26723 by koraktor: Mouse cursor doesn't change when
mouse-idling
http://code.google.com/p/chromium/issues/detail?id=26723

I just tested this on 22.0.1229.94, and it works (at least for my use case).

Minimalistic example: http://codepen.io/koraktor/pen/KorHw

chro...@googlecode.com

unread,
Nov 2, 2012, 5:51:52 AM11/2/12
to chromi...@chromium.org

Comment #71 on issue 26723 by danya.po...@gmail.com: Mouse cursor doesn't
You are right.

chro...@googlecode.com

unread,
Nov 2, 2012, 5:58:03 AM11/2/12
to chromi...@chromium.org

Comment #72 on issue 26723 by dpa...@gmail.com: Mouse cursor doesn't change
when mouse-idling
http://code.google.com/p/chromium/issues/detail?id=26723

koraktor, your example doesn't work if the mouse button is pressed.

chro...@googlecode.com

unread,
Nov 2, 2012, 5:59:03 AM11/2/12
to chromi...@chromium.org

Comment #73 on issue 26723 by danya.po...@gmail.com: Mouse cursor doesn't
My previous post related to 69 comment.
krokator, use mousedown event instead of click.
Read 68 + 69 comments.

chro...@googlecode.com

unread,
Nov 2, 2012, 6:16:31 AM11/2/12
to chromi...@chromium.org

Comment #74 on issue 26723 by koraktor: Mouse cursor doesn't change when
mouse-idling
http://code.google.com/p/chromium/issues/detail?id=26723

Like I said, it works for my use case (usually triggered by jQuery's
ajaxStart/ajaxStop). And this did not work when I initially starred this
issue (about 4 months ago).

chro...@googlecode.com

unread,
Nov 8, 2012, 9:16:20 AM11/8/12
to chromi...@chromium.org

Comment #75 on issue 26723 by aivop...@gmail.com: Mouse cursor doesn't
I digged up the most probable cause of the bug, which is in webkit source
file: third_party/Webkit/Source/WebCore/rendering/RenderObject.cpp

void RenderObject::styleDidChange(StyleDifference diff, const RenderStyle*
oldStyle)
{
// ... Some non-related code removed
if (oldStyle && !areCursorsEqual(oldStyle, style())) {
if (Frame* frame = this->frame())
frame->eventHandler()->dispatchFakeMouseMoveEventSoon();
}
}

So, it is trying to dispatch a fake mousemove event, which is kind of a
hack for changing mouse cursor. Guess what the function does in the very
beginning...

void EventHandler::dispatchFakeMouseMoveEventSoon()
{
if (m_mousePressed)
return;
...

So, it doesn't even try to change the cursor if mouse button is down. But
of course the real bug is that they are using the fake move event for
changing the cursor. And that's the reason why changed cursor is shown on
mouseup - then m_mousePressed == false and it goes on faking a mousemove
event. And that causes an additional bug of emitting mousemove events for
any style change that causes cursor change.

I will try to fix that but I'd appreciate someone more familiar with the
source code to look into it.

chro...@googlecode.com

unread,
Nov 8, 2012, 9:24:20 AM11/8/12
to chromi...@chromium.org

Comment #76 on issue 26723 by aivop...@gmail.com: Mouse cursor doesn't
I did a quick diry test - commented out where it returns when
m_mousePressed == true and also commented out an ASSERT(!m_mousePressed)
that got hit, and now cursor changes as it should. But it still needs a
proper fix that doesn't misuse fake mousemove event for changing cursor.
I'll try to get it properly fixed by replicating only the cursor changing
logic that is run though the fake event.

chro...@googlecode.com

unread,
Nov 9, 2012, 8:18:02 AM11/9/12
to chromi...@chromium.org

Comment #77 on issue 26723 by jmend...@gmail.com: Mouse cursor doesn't
You're affirmating that the issue is at WebKit, NOT Chromium.
If so, what are we doing here? :)

Let's go post the issue at the WebKit tracker, where
*maybe* it won't need ~70 stars to get fixed! ;)

Anyone volunteers?
If not, I can do it.

PD: I don't have Mac, but can anyone please confirm if that
bug happens on Safari too? Thanks.

chro...@googlecode.com

unread,
Nov 9, 2012, 9:07:38 AM11/9/12
to chromi...@chromium.org

Comment #78 on issue 26723 by aivop...@gmail.com: Mouse cursor doesn't
The bug is already reported on webkit too but hasn't received much
attention.

I am currently working on a patch.

There are some more related bugs up that I'll also try to look into.
For example, when you hold cursor over a link, or other element that has
non-default curosr and then a timer changes cursor on another element
that's not under pointer, the cursor gets changed to the default cursor.
It can be seen here: http://jsbin.com/equfor/4/edit
While idling over a link or frame resize area (between frames), cursor
changes, but it shouldn't.
For link, cursor blinks from pointer to default and on the resize area, it
just reverts back to default when the timer changes cursor.
I'll report that one also, since I didn't find a related bug report in
webkit tracker.

chro...@googlecode.com

unread,
Nov 9, 2012, 10:34:42 AM11/9/12
to chromi...@chromium.org

Comment #79 on issue 26723 by danya.po...@gmail.com: Mouse cursor doesn't
I have tested right now other platforms:

1) Chrome 22, Safari 5 on Windows: cursor is not updated until mouseup or
mousemove (or maybe something else)
2) Safari 6 on Mac OS, Chrome 22 on Linux: cursor is not updated until
mousemove (there is no update on mouseup)

Aivo Paas, could u post the link to bugreport ?

chro...@googlecode.com

unread,
Nov 9, 2012, 10:46:54 AM11/9/12
to chromi...@chromium.org

Comment #80 on issue 26723 by aivop...@gmail.com: Mouse cursor doesn't
Those are the closely related reports in webkit:
https://bugs.webkit.org/show_bug.cgi?id=53341
https://bugs.webkit.org/show_bug.cgi?id=85343

I didn't yet report about the bug where cursor is changed back to default
cursor when idling over an element whose cursor isn't changed, but another
element's cursor is changed through a timer. It appears that it has
something to do with frames. That bug bug does not appear in the same
frame. Could you confirm that one also in other platforms so we could file
a more detailed report about that?

chro...@googlecode.com

unread,
Jan 30, 2013, 10:55:59 AM1/30/13
to chromi...@chromium.org

Comment #81 on issue 26723 by tommath...@hotmail.com: Mouse cursor doesn't
Still an issue on Version 24.0.1312.56 m

chro...@googlecode.com

unread,
Feb 2, 2013, 11:09:43 AM2/2/13
to chromi...@chromium.org

Comment #82 on issue 26723 by recycled...@gmail.com: Mouse cursor doesn't
Any news?
This is very important issue. Many people are waiting.

chro...@googlecode.com

unread,
Feb 11, 2013, 1:08:38 PM2/11/13
to chromi...@chromium.org

Comment #83 on issue 26723 by diiiima...@gmail.com: Mouse cursor doesn't
I created example that reproduces the issue on latest Chrome:
http://codepen.io/dimsemenov/pen/gjGbF

Also, I haven't found bug describing this exact issue on Webkit tracker. So
I created one:
https://bugs.webkit.org/show_bug.cgi?id=109457

Anyone knows some hack to update the cursor via JavaScript. Really annoying
thing.

chro...@googlecode.com

unread,
Feb 11, 2013, 1:39:38 PM2/11/13
to chromi...@chromium.org

Comment #84 on issue 26723 by aivop...@gmail.com: Mouse cursor doesn't
Your example doesn't show that bug clearly. It works in latest Chrome on
Windows and probably has worked for a long time, because cursor will get
updated on mouseup.
However, the bug appears when you hold the mouse over the button but press
the button using keyboard. Then there's no mouse event to trigger the
cursor change and it doesn't change until you move cursor or click with
mouse.

I did work on fixing that bug but then there was not much response from
webkit devs and I had to move on to work on other things. I will try again
getting that patch landed. There's still a small issue with it that needs
to get resolved first.

Here's the webkit bug:
https://bugs.webkit.org/show_bug.cgi?id=101857

chro...@googlecode.com

unread,
Feb 11, 2013, 1:41:38 PM2/11/13
to chromi...@chromium.org

Comment #85 on issue 26723 by d.bec...@americanhealthcare.com: Mouse cursor
It shows it clearly enough on Mac. Latest chrome on Mac does not change
the cursor to the zoom out cursor...

chro...@googlecode.com

unread,
Feb 11, 2013, 1:58:38 PM2/11/13
to chromi...@chromium.org

Comment #86 on issue 26723 by aivop...@gmail.com: Mouse cursor doesn't
And to answer the question about a workarond:
The only way around would be to scroll the page, which causes a FAKE!
mousemove event to be triggered. And even that does not work while you have
a mouse button pressed down. So, there is actually no reliable way around
the bug, unfortunately.

chro...@googlecode.com

unread,
Feb 11, 2013, 2:15:38 PM2/11/13
to chromi...@chromium.org

Comment #87 on issue 26723 by da...@sogeeky.net: Mouse cursor doesn't
For what it's worth, here's the workaround we're using:

function setCursor(cursor) {
if (document.body.style.cursor != cursor) {
var wkch = document.createElement("div");
wkch.style.overflow = "hidden";
wkch.style.position = "absolute";
wkch.style.left = "0px";
wkch.style.top = "0px";
wkch.style.width = "100%";
wkch.style.height = "100%";
var wkch2 = document.createElement("div");
wkch2.style.width = "200%";
wkch2.style.height = "200%";
wkch.appendChild(wkch2);
document.body.appendChild(wkch);
document.body.style.cursor = cursor;
wkch.scrollLeft = 1;
wkch.scrollLeft = 0;
document.body.removeChild(wkch);
}
}

If you're curious, wkch stands for webkit cursor hack... This creates a
temporar div over your entire page then scrolls it to trigger the fave
mousemove event.

chro...@googlecode.com

unread,
Feb 11, 2013, 2:23:39 PM2/11/13
to chromi...@chromium.org

Comment #88 on issue 26723 by diiiima...@gmail.com: Mouse cursor doesn't
@aivop...@gmail.com You're right, I just tested and everything works
correctly in Windows. It seems that this bug appears only on Mac.

@da...@sogeeky.net Thank you.


chro...@googlecode.com

unread,
Feb 11, 2013, 8:49:40 PM2/11/13
to chromi...@chromium.org

Comment #91 on issue 26723 by rob...@cosmicrealms.com: Mouse cursor doesn't
So I've just performed extensive testing on custom cursor support,
including the ability to change the mouse while it is idle (not moving) and
also the ability to change it onmousedown. My tests show that Chrome 21, 24
and 25 under Linux, Windows and Mac OS X all support changing it on idle.
No versions of Chrome support changing it onmousedown however. Here is a
blog pot I just wrote about my findings including the actual tests:
http://cosmicrealms.com/blog/2013/02/11/custom-cursor-support-gotchas/

chro...@googlecode.com

unread,
Feb 12, 2013, 11:10:52 AM2/12/13
to chromi...@chromium.org

Comment #92 on issue 26723 by recycled...@gmail.com: Mouse cursor doesn't
No, not just Mac.

diiiima, replace in your example "click" with "mousedown".

chro...@googlecode.com

unread,
Feb 14, 2013, 5:51:38 AM2/14/13
to chromi...@chromium.org

Comment #93 on issue 26723 by aivop...@gmail.com: Mouse cursor doesn't
Patch landed on webkit:
http://trac.webkit.org/changeset/142861

Fixes changing cursor when mouse button is held down
Also removes the fake mousemove event from cursor change

It doesn't fix the case in #4 which is about refreshing the page. On page
load the page has no idea where the cursor is, unless mouse is moved or a
button pressed at first. This case should be covered by that webkit bug:
https://bugs.webkit.org/show_bug.cgi?id=105729

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

chro...@googlecode.com

unread,
Feb 14, 2013, 4:59:14 PM2/14/13
to chromi...@chromium.org
Updates:
Status: Fixed
Labels: WebKit-ID-101857

Comment #94 on issue 26723 by rby...@chromium.org: Mouse cursor doesn't
Awesome, thanks for fixing this!

chro...@googlecode.com

unread,
Feb 15, 2013, 3:40:20 AM2/15/13
to chromi...@chromium.org

Comment #95 on issue 26723 by vive...@gmail.com: Mouse cursor doesn't
Kudos!!! Thanks a lot for fixing this!!!

chro...@googlecode.com

unread,
Feb 15, 2013, 4:44:18 AM2/15/13
to chromi...@chromium.org

Comment #96 on issue 26723 by aivop...@gmail.com: Mouse cursor doesn't
Just informing about a small setback, there's a performance issue that
needs to be dealt with. Nothing that cant be handled.

chro...@googlecode.com

unread,
Feb 21, 2013, 2:24:38 AM2/21/13
to chromi...@chromium.org

Comment #97 on issue 26723 by flashrab...@gmail.com: Mouse cursor doesn't
Well, that's great, but does it fix the bug that doesn't update cursor when
layout changes?

( http://codepen.io/dimsemenov/pen/gjGbF )

On Bugzilla it's here https://bugs.webkit.org/show_bug.cgi?id=53340

chro...@googlecode.com

unread,
Apr 2, 2013, 4:03:45 AM4/2/13
to chromi...@chromium.org

Comment #99 on issue 26723 by cengiz.c...@gmail.com: Mouse cursor doesn't
HERE is my solution:

function yourFunc(){

$('body').removeClass('wait'); // this is my wait class you can
$('body').css('cursor','default');
$('body').blur();
$('body').focus(function(e){
$('body')
.mouseXPos(e.pageX + 1)
.mouseYPos(e.pageX - 1);
});

chro...@googlecode.com

unread,
Apr 2, 2013, 4:05:45 AM4/2/13
to chromi...@chromium.org

Comment #100 on issue 26723 by dpa...@gmail.com: Mouse cursor doesn't
What's mouseXPos and mouseYPos?

chro...@googlecode.com

unread,
Apr 2, 2013, 5:03:54 AM4/2/13
to chromi...@chromium.org

Comment #101 on issue 26723 by tommath...@hotmail.com: Mouse cursor doesn't
You can chain the first 4 statements like you have in the focus handler,
saves selecting and wrapping 'body'.

chro...@googlecode.com

unread,
Apr 4, 2013, 4:09:15 AM4/4/13
to chromi...@chromium.org

Comment #102 on issue 26723 by aivop...@gmail.com: Mouse cursor doesn't
Webkit devs seem tho have abandoned the bug/patch
https://bugs.webkit.org/show_bug.cgi?id=101857

Not sure how to proceed, because my attempts to reach them or to gain any
attention at all, have failed. And now that Chromium has announced Blink, I
feel completely lost.

chro...@googlecode.com

unread,
Apr 18, 2013, 10:17:09 AM4/18/13
to chromi...@chromium.org

Comment #104 on issue 26723 by michele....@progesoft.com: Mouse cursor
I did some tests under Windows 7 64 bit with Chrome 26.0.1410.64, Chrome
28.0.1482.0 canary, Firefox 20.0.1, Opera 12.15, Internet Explorer
10.0.9200.16540, Safari 5.1.7: the only browser that works correctly is
Firefox.

chro...@googlecode.com

unread,
Apr 18, 2013, 10:30:09 AM4/18/13
to chromi...@chromium.org

Comment #105 on issue 26723 by dpa...@gmail.com: Mouse cursor doesn't
@michele how did you test?

I used my jsfiddle http://jsfiddle.net/ndrMQ/2/

Tested on Opera 12.15 and 12.50 under Linux and the cursor changes on
timeout even when mouse button is pressed. Don't have IE at hand but
Firefox is definitely not the only one to show the correct behavior.

chro...@googlecode.com

unread,
Apr 21, 2013, 1:04:17 PM4/21/13
to chromi...@chromium.org

Comment #106 on issue 26723 by dotan.sh...@gmail.com: Mouse cursor doesn't
Another test case (based on dpa...'s sample) using a div to change the
cursor:
http://jsfiddle.net/ee3vH/2/

Not working on Chrome 26.0.1410.63 / Ubuntu

#

chro...@googlecode.com

unread,
Aug 6, 2013, 12:36:37 PM8/6/13
to chromi...@chromium.org

Comment #107 on issue 26723 by jamesl...@turbulenz.biz: Mouse cursor
This is affecting me. I'm writing a game and need to be able to change the
cursor even when the mouse is not moving. My code works find in firefox. I
can't believe this issue has been open since 2010!

chro...@googlecode.com

unread,
Feb 7, 2014, 10:41:33 AM2/7/14
to chromi...@chromium.org

Comment #108 on issue 26723 by GDow...@gmail.com: Mouse cursor doesn't
Why did this get marked as fixed/closed?

chro...@googlecode.com

unread,
Mar 2, 2014, 7:40:48 PM3/2/14
to chromi...@chromium.org

Comment #109 on issue 26723 by dk.vali: Mouse cursor doesn't change when
mouse-idling
http://code.google.com/p/chromium/issues/detail?id=26723

Google Chrome Version 33.0.1750.117 and this issue still occurs to me, damn
annoying.
Does it have to take more than a half decade to fix a rather small issue
like this?

chro...@googlecode.com

unread,
Mar 6, 2014, 1:06:26 PM3/6/14
to chromi...@chromium.org

Comment #110 on issue 26723 by c...@zander-kredite.de: Mouse cursor doesn't
same to me... no solution presented here is working...

chro...@googlecode.com

unread,
Mar 24, 2014, 10:38:20 AM3/24/14
to chromi...@chromium.org
Updates:
Status: Available

Comment #112 on issue 26723 by k...@chromium.org: Mouse cursor doesn't
Still doesn't work for me in Version 34.0.1787.76.

chro...@googlecode.com

unread,
Mar 26, 2014, 8:42:52 PM3/26/14
to chromi...@chromium.org
Updates:
Status: Assigned
Owner: zeesh...@chromium.org
Labels: -Mstone-X -Pri-3 -Action-NeedsReview -WebKit-ID-101857
-Cr-Content-Core -Cr-Blink Pri-2 Cr-Blink-Input M-36

Comment #113 on issue 26723 by rby...@chromium.org: Mouse cursor doesn't
Zeeshan agreed to take a look at this (related to his issue 246304).

chro...@googlecode.com

unread,
Mar 26, 2014, 8:44:52 PM3/26/14
to chromi...@chromium.org
Issue 26723: Mouse cursor doesn't change when mouse-idling
http://code.google.com/p/chromium/issues/detail?id=26723

This issue is now blocking issue chromium:246304.
See http://code.google.com/p/chromium/issues/detail?id=246304

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

chro...@googlecode.com

unread,
Apr 3, 2014, 10:28:28 PM4/3/14
to chromi...@chromium.org

Comment #115 on issue 26723 by bche...@gmail.com: Mouse cursor doesn't
Still an issue on Chrome 33.0.1750.146/OSX

--

chro...@googlecode.com

unread,
May 6, 2014, 10:54:49 PM5/6/14
to chromi...@chromium.org
Updates:
Cc: gnanasek...@samsung.com

Comment #116 on issue 26723 by rby...@chromium.org: Mouse cursor doesn't
(No comment was entered for this change.)

chro...@googlecode.com

unread,
Jun 10, 2014, 10:48:47 AM6/10/14
to chromi...@chromium.org

Comment #118 on issue 26723 by paraseli...@gmail.com: Mouse cursor doesn't
still persist in chrome

chro...@googlecode.com

unread,
Jun 26, 2014, 6:51:39 PM6/26/14
to chromi...@chromium.org
Updates:
Labels: -M-37 MovedFrom-37

Comment #119 on issue 26723 by amin...@chromium.org: Mouse cursor doesn't
change when mouse-idling
http://code.google.com/p/chromium/issues/detail?id=26723#c119

This issue has already been moved once and is lower than Priority
1,therefore removing mstone.

chro...@googlecode.com

unread,
Aug 18, 2014, 12:10:36 PM8/18/14
to chromi...@chromium.org

Comment #120 on issue 26723 by aneeshla...@gmail.com: Mouse cursor doesn't
Can anybody update has this been fixed in latest chrome version?

chro...@googlecode.com

unread,
Aug 18, 2014, 12:16:36 PM8/18/14
to chromi...@chromium.org
Updates:
Cc: rby...@chromium.org

Comment #121 on issue 26723 by zeesh...@chromium.org: Mouse cursor doesn't
We haven't been able to prioritize this yet.

chro...@googlecode.com

unread,
Sep 30, 2014, 2:59:25 PM9/30/14
to chromi...@chromium.org

Comment #122 on issue 26723 by thib...@artillery.com: Mouse cursor doesn't
change when mouse-idling
https://code.google.com/p/chromium/issues/detail?id=26723

Thibaut from Artillery here. We've noticed this bug is still around and
introduces a longer perceived latency when using cursor changes to notify
users of available actions.

This has been brought up during a few of our recent playtests and we would
love to have it re-prioritized higher.

chro...@googlecode.com

unread,
Oct 26, 2014, 8:54:57 AM10/26/14
to chromi...@chromium.org

Comment #124 on issue 26723 by stijndew...@gmail.com: Mouse cursor doesn't
"However, the bug appears when you hold the mouse over the button but press
the button using keyboard."

Yes, I can confirm that on Windows 7 + Chrome 38.0.2125.104 m the mouse
cursor does NOT change when I press the button using the keyboard in this
example:
http://codepen.io/dimsemenov/pen/gjGbF

The behavior of Chrome is NOT correct on Windows.

chro...@googlecode.com

unread,
Oct 26, 2014, 9:44:12 AM10/26/14
to chromi...@chromium.org

Comment #125 on issue 26723 by stijndew...@gmail.com: Mouse cursor doesn't
"introduces a longer perceived latency when using cursor changes to notify
users"

Yes this is what we've been seeing too. Just setting the cursor to Wait on
Ajax request and setting it back to Pointer on response would seem like a
simple thing, but on Chrome the cursor will stay in Wait state forever when
the user does not move the mouse, making the Ajax requests seem to be very
slow.

chro...@googlecode.com

unread,
Dec 22, 2014, 8:15:07 PM12/22/14
to chromi...@chromium.org

Comment #126 on issue 26723 by vincefra...@gmail.com: Mouse cursor doesn't
A workaround I've had some luck with is to force a reflow of the content by
calling something like offsetHeight on the hovered node.

chro...@googlecode.com

unread,
Jan 19, 2015, 1:47:43 PM1/19/15
to chromi...@chromium.org
Updates:
Status: Started
Owner: zhe...@chromium.org
Cc: zeesh...@chromium.org
Labels: -Poachable M-42

Comment #127 on issue 26723 by rby...@chromium.org: Mouse cursor doesn't
It looks like there's logic that's supposed to be handling this case
already - see the call to EventHandler::scheduleCursorUpdate. Something
must be broken with it.

Zheng is looking into this.

chro...@googlecode.com

unread,
Mar 7, 2015, 10:21:13 AM3/7/15
to chromi...@chromium.org
Updates:
Status: Fixed
Labels: -MovedFrom-42 M-42

Comment #132 on issue 26723 by rby...@chromium.org: Mouse cursor doesn't
(No comment was entered for this change.)

chro...@googlecode.com

unread,
Apr 30, 2015, 11:27:30 AM4/30/15
to chromi...@chromium.org
Updates:
Status: Assigned
Owner: rby...@chromium.org
Labels: -M-42 M-43
Blockedon: chromium:482971

Comment #134 on issue 26723 by rby...@chromium.org: Mouse cursor doesn't
Going to temporarily revert for issue 468641
This actually only made it to the M43 branch, I'll revert and plan to
re-enable for M44.

chro...@googlecode.com

unread,
Apr 30, 2015, 11:43:30 AM4/30/15
to chromi...@chromium.org

Comment #136 on issue 26723 by bugdro...@chromium.org: Mouse cursor doesn't
change when mouse-idling
https://code.google.com/p/chromium/issues/detail?id=26723#c136

The following revision refers to this bug:
http://src.chromium.org/viewvc/blink?view=rev&rev=194743

------------------------------------------------------------------
r194743 | rby...@chromium.org | 2015-04-30T14:51:25.775521Z

Changed paths:
D
http://src.chromium.org/viewvc/blink/trunk/LayoutTests/fast/events/mouse-cursor-change-after-layout.html?r1=194743&r2=194742&pathrev=194743
M
http://src.chromium.org/viewvc/blink/trunk/Source/core/frame/FrameView.cpp?r1=194743&r2=194742&pathrev=194743
D
http://src.chromium.org/viewvc/blink/trunk/LayoutTests/fast/events/mouse-cursor-change-after-layout-expected.txt?r1=194743&r2=194742&pathrev=194743

Revert of Schedule cursor update when DOM updates layout. (patchset #4
id:60001 of https://codereview.chromium.org/915543003/)

Reason for revert:
Exposed mouse cursor flicker regression: http://crbug.com/468641 (due to a
pre-existing bug - http://crbug.com/482971).

Original issue's description:
> Schedule cursor update when DOM updates layout.

> BUG=26723

> Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=190676

TBR=zhe...@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=26723

Review URL: https://codereview.chromium.org/1120653002
-----------------------------------------------------------------

chro...@googlecode.com

unread,
Apr 30, 2015, 11:46:31 AM4/30/15
to chromi...@chromium.org
Issue 26723: Mouse cursor doesn't change when mouse-idling
https://code.google.com/p/chromium/issues/detail?id=26723

This issue is no longer blocking issue chromium:468641.
See https://code.google.com/p/chromium/issues/detail?id=468641
--

chro...@googlecode.com

unread,
Apr 30, 2015, 12:28:52 PM4/30/15
to chromi...@chromium.org

Comment #139 on issue 26723 by rby...@chromium.org: Mouse cursor doesn't
Issue 325833 has been merged into this issue.

--

chro...@googlecode.com

unread,
May 1, 2015, 2:29:32 PM5/1/15
to chromi...@chromium.org
Updates:
Labels: merge-merged-2357

Comment #142 on issue 26723 by bugdro...@chromium.org: Mouse cursor doesn't
change when mouse-idling
https://code.google.com/p/chromium/issues/detail?id=26723#c142

The following revision refers to this bug:
http://src.chromium.org/viewvc/blink?view=rev&rev=194816

------------------------------------------------------------------
r194816 | rby...@chromium.org | 2015-05-01T17:37:43.618738Z

Changed paths:
M
http://src.chromium.org/viewvc/blink/branches/chromium/2357/Source/core/frame/FrameView.cpp?r1=194816&r2=194815&pathrev=194816
D
http://src.chromium.org/viewvc/blink/branches/chromium/2357/LayoutTests/fast/events/mouse-cursor-change-after-layout-expected.txt?r1=194816&r2=194815&pathrev=194816
D
http://src.chromium.org/viewvc/blink/branches/chromium/2357/LayoutTests/fast/events/mouse-cursor-change-after-layout.html?r1=194816&r2=194815&pathrev=194816

Merge 194743 "Revert of Schedule cursor update when DOM updates ..."

> Revert of Schedule cursor update when DOM updates layout. (patchset #4
> id:60001 of https://codereview.chromium.org/915543003/)

> Reason for revert:
> Exposed mouse cursor flicker regression: http://crbug.com/468641 (due to
> a pre-existing bug - http://crbug.com/482971).

> Original issue's description:
> > Schedule cursor update when DOM updates layout.
> >
> > BUG=26723
> >
> > Committed:
> https://src.chromium.org/viewvc/blink?view=rev&revision=190676

> TBR=zhe...@chromium.org
> NOPRESUBMIT=true
> NOTREECHECKS=true
> NOTRY=true

> Review URL: https://codereview.chromium.org/1120653002

BUG=468641, 26723
TBR=rby...@chromium.org

Review URL: https://codereview.chromium.org/1123463002
-----------------------------------------------------------------

chro...@googlecode.com

unread,
Jan 5, 2016, 1:16:21 AM1/5/16
to chromi...@chromium.org

Comment #147 on issue 26723 by cameron....@gmail.com: Mouse cursor doesn't
This is not fixed for me using Version 49.0.2612.0 canary (64-bit).
Reply all
Reply to author
Forward
0 new messages