We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 009410e + 8a9e5d3 commit 78142a3Copy full SHA for 78142a3
cocos2d-ui-tests/tests/PositioningTest.m
@@ -40,6 +40,8 @@ - (void)touchBegan:(CCTouch *)touch withEvent:(CCTouchEvent *)event
40
- (void)touchMoved:(CCTouch *)touch withEvent:(CCTouchEvent *)event
41
{
42
CGPoint pos = [self.parent convertToNodeSpace:touch.locationInWorld];
43
+ // If we want to position them relative to the window, we can't use normalized positions.
44
+ self.positionType = CCPositionTypePoints;
45
self.position = pos;
46
}
47
0 commit comments