Skip to content

Commit 78142a3

Browse files
committed
Merge pull request #1130 from andykorth/PositioningTest1114
Fix moving cards with normalized positions and worldspace coords
2 parents 009410e + 8a9e5d3 commit 78142a3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cocos2d-ui-tests/tests/PositioningTest.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ - (void)touchBegan:(CCTouch *)touch withEvent:(CCTouchEvent *)event
4040
- (void)touchMoved:(CCTouch *)touch withEvent:(CCTouchEvent *)event
4141
{
4242
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;
4345
self.position = pos;
4446
}
4547

0 commit comments

Comments
 (0)