Skip to content

[Question]: Click target and canvas coordinates. #401

@mateenagy

Description

@mateenagy

Hi!

I have a project where I have a map where I can zoom and pan around. As far as I know this interaction is can not be created inside the editor so I use ctx.scale and ctx.setTransform to calculate these movements. Everything is working fine until I add Listeners to objects.

The problem is when I zoom in or pan around the graphic elements are moving around nicely and scaling up but the listener which I guess lives on a different layer and it's not scaled and positioned with the graphic.

My question is: is it possible to have the listeners also scaled/transformed with the graphics or can I access it through custom renderer or it isn't possible at all? (I use @rive-app/canvas)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions