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

parent child event propagation #834

Closed
hpet opened this issue Jul 29, 2015 · 1 comment
Closed

parent child event propagation #834

hpet opened this issue Jul 29, 2015 · 1 comment

Comments

@hpet
Copy link

hpet commented Jul 29, 2015

I can't stop events being captured and processed by the parent. I have Hammer instance on body and Hammer instance on child (aka "floatable window"). When I try to close child, parent also already captured whatever event and is holding reference to the child target. This is causing memory issues as targets are being hold by parent Hammer instance.

How can I handle this? I have tried many workarounds but none worked. How does Hammer handle events? Where should I capture and what should I capture in order to prevent parent Hammer instance to get any child triggered events? ...I am trying to understand how this works in Hammer but seems I can't wrap my head around it.

@runspired
Copy link
Contributor

Closed in favor of #807

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