From 42ffe1b521bc2569f1a1514e9d5e8e46d913d8fe Mon Sep 17 00:00:00 2001 From: zilongshanren Date: Thu, 4 Aug 2016 17:46:06 +0800 Subject: [PATCH 1/2] fix scrollbar opacity issue --- cocos2d/core/components/CCScrollBar.js | 2 +- cocos2d/core/components/CCScrollView.js | 16 +++++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/cocos2d/core/components/CCScrollBar.js b/cocos2d/core/components/CCScrollBar.js index 4f5da41e32..ff46963aeb 100644 --- a/cocos2d/core/components/CCScrollBar.js +++ b/cocos2d/core/components/CCScrollBar.js @@ -333,7 +333,7 @@ var Scrollbar = cc.Class({ }, show: function() { - this._autoHideRemainingTime = 0; + this._autoHideRemainingTime = this.autoHideTime; this._setOpacity(this._opacity); }, diff --git a/cocos2d/core/components/CCScrollView.js b/cocos2d/core/components/CCScrollView.js index 4d1602b29d..e389942140 100644 --- a/cocos2d/core/components/CCScrollView.js +++ b/cocos2d/core/components/CCScrollView.js @@ -1328,11 +1328,25 @@ var ScrollView = cc.Class({ } }, - onDisable: function() { + _showScrollbar: function () { + if (this.horizontalScrollBar) { + this.horizontalScrollBar.show(); + } + + if (this.verticalScrollBar) { + this.verticalScrollBar.show(); + } + }, + + onDisable: function () { this._hideScrollbar(); this.stopAutoScroll(); }, + onEnable: function () { + this._showScrollbar(); + }, + update: function(dt) { if (this._autoScrolling) { this._processAutoScrolling(dt); From 7d4f8400708396c4424906e77d9ad71a2712aed2 Mon Sep 17 00:00:00 2001 From: Jare Guo Date: Fri, 5 Aug 2016 10:16:09 +0800 Subject: [PATCH 2/2] Integrate lgtm.co --- MAINTAINERS | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 MAINTAINERS diff --git a/MAINTAINERS b/MAINTAINERS new file mode 100644 index 0000000000..558eaca9cf --- /dev/null +++ b/MAINTAINERS @@ -0,0 +1,10 @@ + +2youyou2 +dabingnn +jareguo +knoxHuang +nantas +natural-law +pandamicro +VisualSJ +zilongshanren