fix scrollView bug (#2939)

This commit is contained in:
PP
2018-07-04 11:43:23 +08:00
committed by pandamicro
parent e96770a22d
commit 24893f4db0
-5
View File
@@ -1325,11 +1325,6 @@ let ScrollView = cc.Class({
let currentOutOfBoundary = this._getHowMuchOutOfBoundary();
if (!currentOutOfBoundary.fuzzyEquals(cc.v2(0, 0), EPSILON)) {
this._autoScrollCurrentlyOutOfBoundary = true;
let afterOutOfBoundary = this._getHowMuchOutOfBoundary(adjustedDeltaMove);
if (currentOutOfBoundary.x * afterOutOfBoundary.x > 0 ||
currentOutOfBoundary.y * afterOutOfBoundary.y > 0) {
this._autoScrollBraking = true;
}
}
},