Link to .capx file (required!):
http://www.onemuppet.se/Games/GetLocalCenterBug.capx
Cocoonjs zip file:
http://www.onemuppet.se/Games/GetLocalCenterBug.zip
Steps to reproduce:
1. Export with Cocoonjs
2. Run the exported zip with the cocoonjs launch (tested on iphone 4gs)
3. Click on the "Candy Master" image.
4. Check the Console -> Errors.
Observed result:
Javascript Exception (Line:30712 Tag: 'touchend'): TypeError: 'undefined' is not a function (evaluating 'this.body.GetLocalCenter()')
Expected result:
The image should be moved without any errors.
This is a silly test capx file just to show the error, the way I use this is for "Buttons", where I have a touchstart that set a "MenuAction" variable, and on touchend I check which "MenuAction" variable is set and if the user is still touching that "Button". So the user can click, hold and change their mind and end the click outside the button which won't result in any action.
Browsers affected:
Chrome: no
Firefox: no
Internet Explorer: no
Operating system & service pack:
Windows 7.
Construct 2 version:
r130, (this but was introduced in r129, I just didn't have time to file the bug until now).