From 24893f4db0a4a4a750d6a04000382f43385576ca Mon Sep 17 00:00:00 2001 From: PP Date: Wed, 4 Jul 2018 11:43:23 +0800 Subject: [PATCH] fix scrollView bug (#2939) --- cocos2d/core/components/CCScrollView.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/cocos2d/core/components/CCScrollView.js b/cocos2d/core/components/CCScrollView.js index 70e29ef339..1b19ac0211 100644 --- a/cocos2d/core/components/CCScrollView.js +++ b/cocos2d/core/components/CCScrollView.js @@ -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; - } } },