fix scrollbar opacity issue

This commit is contained in:
zilongshanren
2016-08-04 17:46:06 +08:00
parent fa5a5b2810
commit dd85de6cbb
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);