Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS cursor pointer flicker once and then back to default

Tags:

css

I am experience a weird behaviour in both Google Chrome and Safari in OSX.

The cursor is changing to the pointer quickly, and then back to the default one when hovering links and elements where I have set cursor: pointer in the css.

I haven't been able to reproduce it on any other site of mine so just gonna drop the url here: http://stage.lagenheter24.se

Why is this happening? And how can I solve it? I have tried to set following without any result:

a { cursor: pointer !important; }
like image 312
Jimmie Johansson Avatar asked Sep 29 '15 19:09

Jimmie Johansson


4 Answers

This sounds like a ridiculous answer but I had a similar issue on Mac OSX (any browser). I've noticed the problem wasn't in my code but on other web pages too - like this one and a simple system reboot solved this.

like image 144
Carlo S Avatar answered Nov 15 '22 08:11

Carlo S


I don't believe you need to restart your computer for this. The issue is actually when Photoshop is open at the same time as your web browser. For some reason this creates the issue. I imagine it has something to do with Adobe and Apple not playing nice. If you close photoshop the issue should resolve. Rebooting the computer only appears to work because you likely closed your programs before doing so.

like image 31
BlueIceDJ Avatar answered Nov 15 '22 08:11

BlueIceDJ


Maybe the element position is changed very subtly when you hover on it, causing it to rapidly switch between hovered and unhovered state, then the CSS cursor is switching too.

Try giving it a position relative or absolute :)

like image 42
Zico Deng Avatar answered Nov 15 '22 08:11

Zico Deng


this trouble happens for me in Mozilla and Internet Explorer when cursor hover on elements which has an float property. so my solution is go out from float:right\left to position:absolute (or fixed) with adding the positions for those elements. hope solution helps you :)

like image 37
Iegor Bielikov Avatar answered Nov 15 '22 08:11

Iegor Bielikov