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

The differences between scene and hit ? #10

Closed
berryliu opened this issue Jan 26, 2015 · 1 comment
Closed

The differences between scene and hit ? #10

berryliu opened this issue Jan 26, 2015 · 1 comment

Comments

@berryliu
Copy link

can you tell me the differences between scene region(renderer) and hit region(renderer) particularly? And why there will be a "hit" term? When should I use it?
Thanks.

@lavrton
Copy link
Member

lavrton commented Jan 26, 2015

I think you will understand hit term in this example: http://lavrton.github.io/KineticJS/Events/Custom_Hit_Region.html

In short: scene define how shape looks. hit define area of event reaction.

One of the most useful case: you have a very thin line on canvas. You need to listen click event on it. But it is not easy to click on such line. So you can increase hit area of the line.

@lavrton lavrton closed this as completed Jan 26, 2015
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