Skip to content

onClick event behaviour in positioned canvas #71

@alkthegit

Description

@alkthegit

Hi,

I'm struggling with a problem, related to my comment on issue about onClick handler: Click Events Not Working

I compare two demo examples:

The code in both cases seems generally equal as for how onClick event is handled and the scene is organized.

But if I style <th-canvas> elements in both examples this way:

width: 50%;
height: 50%
margin: auto;

Then controls-examle still works as before, and the <th-box3Helper> in the simple example stops reacting on clilck events.

What am I missing here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions