Merge pull request #1011 from zilongshanren/fix-scrollbar-opacity

fix scrollbar opacity issue
This commit is contained in:
Jare Guo
2016-08-05 09:58:04 +08:00
committed by GitHub
2 changed files with 16 additions and 2 deletions
+1 -1
View File
@@ -333,7 +333,7 @@ var Scrollbar = cc.Class({
},
show: function() {
this._autoHideRemainingTime = 0;
this._autoHideRemainingTime = this.autoHideTime;
this._setOpacity(this._opacity);
},
+15 -1
View File
@@ -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);