Skip to content Skip to sidebar Skip to footer

Cursor:pointer On Hover Html5 Canvas Element

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

Solution 1:

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.

Solution 2:

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 )

Post a Comment for "Cursor:pointer On Hover Html5 Canvas Element"