cursor:pointer on hover html5 canvas element

后端 未结 2 1320
孤城傲影
孤城傲影 2021-01-11 19:26

is there anyway to do this to let the user know the element is clickable?. I have been using easeljs but haven\'t found anything related

相关标签:
2条回答
  • 2021-01-11 20:08

    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 )

    0 讨论(0)
  • 2021-01-11 20:12

    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.

    0 讨论(0)
提交回复
热议问题