Bug report cc.Director.setContentScaleFactor() -> wrong touch position

Bug report cc.Director.setContentScaleFactor() -> wrong touch position
0.0 0


This is a bug report. I reported the same on Github ( https://github.com/cocos2d/cocos2d-html5/issues/958 ).

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

Thanks and good luck!


I’m stuck with the 2.1.1 version because of this issue. To be able to run fullscreen is a MUST for my games (and most of the games I think). I really hope this one gets fixed in 2.1.4 !
Good luck and thanks for your impressive work.


I guess I reported this bug too late and that it won’t be fixed in 2.1.4. I saw that 2.1.5 will support full screen on all mobile devices, looking forward to it.
The biggest issue with Cocos2d-html5 now is the community/forum/github (questions get answered if we are lucky… and bug reports are not treated if the bug is not major) and the documentation which is not up-to-date.
I hope it will get better with time, I actively support Cocos2d
Good luck ^^