From a724942e181ee66732f2b5fcf58e0af34a3e1e73 Mon Sep 17 00:00:00 2001 From: Atsumu Ono Date: Wed, 8 Nov 2017 10:53:37 +0900 Subject: [PATCH] Fix the update processing logic of the scissor box --- extensions/gui/scrollview/CCScrollViewWebGLRenderCmd.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/gui/scrollview/CCScrollViewWebGLRenderCmd.js b/extensions/gui/scrollview/CCScrollViewWebGLRenderCmd.js index 3d837db14f..54e8ec825f 100644 --- a/extensions/gui/scrollview/CCScrollViewWebGLRenderCmd.js +++ b/extensions/gui/scrollview/CCScrollViewWebGLRenderCmd.js @@ -42,7 +42,7 @@ node._scissorRestored = true; node._parentScissorRect = EGLViewer.getScissorRect(); //set the intersection of m_tParentScissorRect and frame as the new scissor rect - if (cc.rectIntersection(frame, node._parentScissorRect)) { + if (cc.rectIntersectsRect(frame, node._parentScissorRect)) { var locPSRect = node._parentScissorRect; var x = Math.max(frame.x, locPSRect.x); var y = Math.max(frame.y, locPSRect.y);