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

Menu selection bounds needs another check #93

Open
steve-h opened this issue Oct 7, 2014 · 0 comments
Open

Menu selection bounds needs another check #93

steve-h opened this issue Oct 7, 2014 · 0 comments

Comments

@steve-h
Copy link

steve-h commented Oct 7, 2014

I am using presentation in a Rect from a press elsewhere on the screen and the menu acts like a popover menu without all the background dimming. (Using iPad so menu is not the width of the screen)

In Module REMenuItemView proc touchesEnded
I had to add an x-coordinate check:

if (endedPoint.x < 0 || endedPoint.x > CGRectGetWidth(self.bounds))
return;

If the menu was presented beside the place where the touch occurred then whatever item was at same y-coord was selected.

I'm not experienced enough with Git yet to create a Pull request for this, sorry.

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

1 participant