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

Increase the "hit area" within menu items #10

Closed
zachkinstner opened this issue Feb 18, 2015 · 1 comment
Closed

Increase the "hit area" within menu items #10

zachkinstner opened this issue Feb 18, 2015 · 1 comment
Assignees

Comments

@zachkinstner
Copy link
Member

The standard menu item renderers provide a hit area along the outside edge of the item. This works well when you bring the cursor toward the menu arc from the side.

However, there are use cases where the cursor might move past this outer edge (toward the menu hand's palm). This can occur if the cursor moves too far horizontally, or is coming toward the menu arc from a "depth" direction. For the new "LeapLook" input module, you often look at the center of the menu item.

To improve this, add more selection points within each menu arc. This will improve the scenarios described above. Essentially, if the cursor is near to any part of a menu item, it should be able to generate a selection.

@zachkinstner
Copy link
Member Author

This could probably use some optimization to reduce the number of "hit area" points that must be checked/measured. I made a TODO note in the code.

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