Skip to main content
guerganat98188658
Participant
December 13, 2016
Question

Change cursor in canvas element

  • December 13, 2016
  • 1 reply
  • 1289 views

Hello,

I am trying to change the cursor on hover on the whole canvas and I got a working example that works with:

stage.cursor = "pointer";

in the actions panels inside Animate CC.

The problem with this is that it is not working in all examples. This seems to work only on samples where there are buttons on the stage.

I also tried modifying the html and adding the css cursor property like this:

#canvas {

cursor: pointer;

}

but this, on the contrary, doesn't work on examples where I already have buttons that have their default hover cursor change...

What I need is a standarized easy way of changing the cursor when hovering on any part of the stage.

Can anybody help me clarify this?

Thank you.

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
December 13, 2016

did use stage.enableMouseOver(25) or something similar?