Skip to content

CreateJS Animate CC - mouse clicks don't work #867

@saar62097

Description

@saar62097

Hey all, I have a question:

What could be the potential reasons for Animate-CC/CreatJS Canvas mouse interactions to work here (press the video play button ) but not here (press the button "play")?

Please open the console, you will see the first site logging both the canvas and the stage clicks, while the second one logs only the canvas clicks.

This is the code I have:

this.stage.addEventListener("click", function(){console.log("stage is clicked")});
this.stage.canvas.addEventListener("click", function(){console.log("canvas is clicked")});

My code is loaded into both of the above pages, but the second page does something that makes the stage un-clickable.

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions