Skip to content

Stop propagation #81

@luojinzhang

Description

@luojinzhang

Hi guys,
I am having a problem with pixi marker. So when I click on the marker, the event is not stopped and keep going through to leaflet layer. I have been looking through in Pixi forum but it doesn't work. Method I have tried:

markerSprite.on('mouseup', (e) => {
              if (moveCount < 2 && onClick) {
                e.stopPropagation();
                onClick(id);
              }
            });

I wonder if anyone know how to solve this. Thank you.

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