CreateJS / EaselJS

The Easel Javascript library provides a full, hierarchical display list, a core interaction model, and helper classes to make working with the HTML5 Canvas element much easier.
http://createjs.com/
MIT License
8.11k stars 1.97k forks source link

Bug: Stage Cursor only visible above Children #1018

Open cliedelt opened 5 years ago

cliedelt commented 5 years ago

Hello,

The event "stagemousemove" is triggered even if the mouse moves where no shapes/elements are. But you cannot set the cursor for the stage. The cursor for the stage is only visible above other elements.

Please see my attached codepen. (watch the console)

CodePen.io

lannymcnie commented 5 years ago

Stagemousemove works as expected, but it looks like the stage.cursor is not set properly. Good catch.

cliedelt commented 5 years ago

thanks @lannymcnie for the super quick response.

A workaround could be to create a hitbox varible for the canvas size... But this should not be the expected behavior...