sourcemars / cocos2d-android-1

Automatically exported from code.google.com/p/cocos2d-android-1
0 stars 0 forks source link

CCMenu ccTouchesMoved 异常 #8

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. 一个有3个CCMenuItemLabel的menu
2. 按住的一个item,手指不动

What is the expected output? What do you see instead?
ccTouchesMoved 函数中, CCMenuItem currentItem = itemForTouch(event); 
每次响应都应该返回同一个item项,但是返回结果看上去好像�
��不时的会出现null,
然后被选中的item就会不停的在闪。

What version of the product are you using? On what operating system?
htc magic 2.2 rom

Please provide any additional information below.
加上catlog看了一下,touchEvent每次的位置都是对的,没有发生�
��大的变化。
 感觉是 itemForTouch(event); 里的问题。

Original issue reported on code.google.com by NGl...@gmail.com on 16 Oct 2010 at 2:07

GoogleCodeExporter commented 8 years ago
ps, n1 2.2rom测试了一下也有这个问题。

Original comment by NGl...@gmail.com on 16 Oct 2010 at 2:12

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
item type is  CCMenuItemLabel  ,
CCMenuItemImage is ok :)

Original comment by NGl...@gmail.com on 16 Oct 2010 at 10:49

GoogleCodeExporter commented 8 years ago
也不是在blink,
按住一个CCMenuItemLabel不动, 在 itemForTouch(event) 
里会不时的返回null, 一直处于selected unselected 的切换之中, 
导致这个CCMenuItemLabel会不停的变大与恢复原大小。

Original comment by NGl...@gmail.com on 16 Oct 2010 at 2:17