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

object on click inside an group #100

Closed
CrackerakiUA opened this issue Nov 6, 2015 · 2 comments
Closed

object on click inside an group #100

CrackerakiUA opened this issue Nov 6, 2015 · 2 comments

Comments

@CrackerakiUA
Copy link

How it possible to add event on an object when we have that object inside an group. For example i need click event on small object which is in huge group, but handle click only on that small object.

@CrackerakiUA
Copy link
Author

The best way i can think is get clicked location on the group, check location of my small object and compare.

@CrackerakiUA
Copy link
Author

Looks like event.e.layerX is not giving location of mouse from the Left inside canvas. Correct me if i am wrong. Any good idea how to do this task?

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