Skip to content

Commit 4a7c580

Browse files
author
cody
committed
fixed cc.TableView touch issue.
The issue only occurs on high-resolution Android device.
1 parent 369b222 commit 4a7c580

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

extensions/gui/scrollview/CCScrollView.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -502,8 +502,8 @@ cc.ScrollView = cc.Layer.extend(/** @lends cc.ScrollView# */{
502502
moveDistance.x *= BOUNCE_BACK_FACTOR;
503503
}
504504

505-
if (!this._touchMoved && Math.abs(cc.convertDistanceFromPointToInch(dis)) < MOVE_INCH) {
506-
//CCLOG("Invalid movement, distance = [%f, %f], disInch = %f", moveDistance.x, moveDistance.y);
505+
if (Math.abs(cc.convertDistanceFromPointToInch(dis)) < MOVE_INCH) {
506+
this._touchMoved = false;
507507
return;
508508
}
509509

@@ -513,7 +513,6 @@ cc.ScrollView = cc.Layer.extend(/** @lends cc.ScrollView# */{
513513
}
514514

515515
this._touchPoint = newPoint;
516-
this._touchMoved = true;
517516

518517
if (this._dragging) {
519518
switch (locDirection) {

0 commit comments

Comments
 (0)