cursor:pointer on hover html5 canvas element

ぐ巨炮叔叔 提交于 2019-12-01 03:31:39
Charlotte

You could use this: How to make clickable points in html5 canvas?

and while the mouse is in that area, you can set: $('#canvasID').css('cursor','pointer') and $('#canvasID').css('cursor','auto') when it's not over it.

I am using Easeljs and to get a pointer cursor I use myObject.cursor = 'pointer' and stage.enableMouseOver(20); ( from the DragAndDrop.html example code )

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!