简体   繁体   中英

js/css changing cursor

I'm using css/js to change the class of an element which the pointer is hoving over. The class determines the custom cursor image.

Unfortunately, it seems as if the cursor does not update in Chrome unless I physically move the mouse. Unfortunately the app is primarily used through the keyboard, however the cursor image is pretty important.

Any way around this?

Thanks.

This is actually a documented bug in Chrome and Safari. See this question on StackOverflow:

Getting the browser cursor from "wait" to "auto" without the user moving the mouse

I think you're out of luck for now, sorry

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM