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

Implement z-order bias for touch handling #396

Closed
totallyeviljake opened this issue Feb 12, 2014 · 4 comments
Closed

Implement z-order bias for touch handling #396

totallyeviljake opened this issue Feb 12, 2014 · 4 comments

Comments

@totallyeviljake
Copy link
Member

when touch handlers overlap on the screen the touch events are sent to all of them. the touch should be handled in a z-order fashion where the top most node gets to process the touches and discard them if they are not in the node.

@totallyeviljake
Copy link
Member Author

Please implement this soon. We see this manifest always in some ccflash tests.

@totallyeviljake
Copy link
Member Author

I have added support for this in the following commit:

1155036

You enable it by using the CCConfiguration class (CCConfiguration.UseGraphPriority)

@totallyeviljake
Copy link
Member Author

My last commit 5e0fb08 is making the graph priority work more reliably. I still see some oddities in the graph dispatcher, but mostly this is working as expected. CCControl had some hard coded priority values (1) and overrode some behavior that did not make sense.

@totallyeviljake
Copy link
Member Author

The first attempt at fixing this did not work properly. So I implemented read graph order indexing of the touch handlers.

ae5b663

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

No branches or pull requests

1 participant