Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mouse hand cursor disappears in Google Chrome if page is reloaded

Using a normal

.foo {cursor:pointer;cursor:hand;width:250px;height:250px;background:#aaa;}

and

<div class="foo"><!--ph--></div>

as seen here: http://jsfiddle.net/UZq5d/2/

If I hold the cursor over the gray background then reload the pages, the cursor defaults back to the arrow.

Is there any nifty and lightweight way to check if the cursor is over the .foo element on load? Or perhaps periodically, on mouse move? jQuery allowed.

EDIT: I'm seeing this behaviour using Chrome on OS X.

like image 421
Mattis Avatar asked Dec 18 '25 10:12

Mattis


1 Answers

Using jQuery to set the cursor initially works - ie without the css for cursor - see here to see what i mean --> http://jsfiddle.net/UZq5d/15/

like image 150
Manse Avatar answered Dec 19 '25 22:12

Manse



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!