The latest codes on the github have resolved the issue.
CCScrollview will not deal with sensitive moving as a move action.
Please see the codes below:
static float convertDistanceFromPointToInch(float pointDis)
float factor = ( CCEGLView::sharedOpenGLView()->getScaleX() + CCEGLView::sharedOpenGLView()->getScaleY() ) / 2;
return pointDis * factor / CCDevice::getDPI();
void CCScrollView::ccTouchMoved(CCTouch* touch, CCEvent* event)
newPoint = this->convertTouchToNodeSpace((CCTouch*)m_pTouches->objectAtIndex(0));
moveDistance = ccpSub(newPoint, m_tTouchPoint);
float dis = 0.0f;
if (m_eDirection == kCCScrollViewDirectionVertical)
dis = moveDistance.y;
else if (m_eDirection == kCCScrollViewDirectionHorizontal)
dis = moveDistance.x;
dis = sqrtf(moveDistance.x*moveDistance.x + moveDistance.y*moveDistance.y);
if (!m_bTouchMoved && fabs(convertDistanceFromPointToInch(dis)) < MOVE_INCH )
//CCLOG("Invalid movement, distance = [%f, %f], disInch = %f", moveDistance.x, moveDistance.y);
Zhiqiang Li wrote:
I come across with the same problemCan you tell me how to solve this problem?
James Chen wrote:
> @Nitesh Purohit
> Issue #1672 was created for this bug. I will try to fix it. Thanks.
> Nitesh Purohit wrote:
> > i have not found anything promising enough to resolve this issue. It around 2 month i have posted this issue with tableview, i managed my view without tableview, but with due respect it is an important improvement tobe done.
> > Regards,
> > Nitesh Purohit