Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop propagation #81

Open
luojinzhang opened this issue Nov 17, 2022 · 1 comment
Open

Stop propagation #81

luojinzhang opened this issue Nov 17, 2022 · 1 comment

Comments

@luojinzhang
Copy link

luojinzhang commented Nov 17, 2022

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.

@nebsar
Copy link

nebsar commented Mar 16, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants