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

cc.Director.setContentScaleFactor() : wrong touch position #958

Open
Tokyonono opened this issue Jun 7, 2013 · 2 comments
Open

cc.Director.setContentScaleFactor() : wrong touch position #958

Tokyonono opened this issue Jun 7, 2013 · 2 comments

Comments

@Tokyonono
Copy link

Issue: when using cc.Director.setContentScaleFactor(), the touch position are not handled properly.
Steps to reproduce:
1/ Use renderMode:1 (Canvas only)
2/ Add a cc.Menu with some cc.MenuItem elements to the main layer
3/ Use the Hello World sample code which was available in 2.1.1 to resize the canvas depending on the size of the window
Result: the designs are properly scaled, but the touch positions are wrong
Expected result: the touch positions should be scaled properly (following the designs)
PS: it works fine on 2.1.1

@linshun
Copy link
Member

linshun commented Jun 17, 2013

Thanks for review, I will check it and fix ASAP.

@mafsays
Copy link

mafsays commented Jul 5, 2013

have encountered and overcome same problem here:

http://www.cocos2d-x.org/boards/19/topics/31205?r=31210

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

3 participants