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

Problem with hotspot and ray collision #70

Closed
martirius opened this issue May 24, 2021 · 3 comments
Closed

Problem with hotspot and ray collision #70

martirius opened this issue May 24, 2021 · 3 comments
Labels

Comments

@martirius
Copy link
Contributor

Hi,
I have noticed a problem with touch event interceptor on an hotspot.
It seems that vertices are not calculated correctly (but hotspots are showed correctly).

Screen Shot 2021-05-24 at 18 07 32

As shown in the picture, bounding boxes are delimited inside white box and goes outside of the size of the picture.

In this case instead, the box is completely shifted on a lower Y (and all others of this type), and no collision is intercepted if i click on the grey hotspot; instead if I click on the white box, the touch is intercepted.

Screen Shot 2021-05-24 at 17 58 31

Don't really know where to see for a solution.

@martirius
Copy link
Contributor Author

Well, after analyzing it looks like the problem appears when you set plManager.onTouchEvent on a View. instead of overriding the one on an Activity. That's a problem because in this case you must use an Activity instead of a Fragment (since onTouchEvent can be overrided only in Activity)

@stale
Copy link

stale bot commented Jul 10, 2022

This issue has been automatically marked as stale because it has not had recent activity. Please comment here if it is still valid so that we can reprioritize. Thank you!

@stale stale bot added the stale label Jul 10, 2022
@stale
Copy link

stale bot commented Nov 2, 2022

Closing this. Please reopen if you believe it should be addressed. Thank you for your contribution.

@stale stale bot closed this as completed Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant