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

RNInputManager uses wrong coordinates #132

Open
wolfscaptain opened this issue Mar 23, 2013 · 1 comment
Open

RNInputManager uses wrong coordinates #132

wolfscaptain opened this issue Mar 23, 2013 · 1 comment

Comments

@wolfscaptain
Copy link

Line 333:

local x, y = RNFactory.screen.layer:wndToWorld(x, y)

gets the correct world space coordinates for the event, but declares them as local so they aren't actually sent to the correct object on line 336:

local currenTarget = screen:getRNObjectWithHighestLevelOn(x, y);

This is noticeable if you change the origin of the view port, since touch events just aren't triggered correctly for objects.

Removing the local identifier fixes this.

@MattiaFortunati
Copy link
Collaborator

Hi wolfscaptain,

I've tested this (also for a stretched view) but if I remove the local identifier nothing is working and touch is not detected.
Maybe the bug for the view port origin translation is somewhere else.

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