mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 08:02:39 +08:00
fix scrollbar opacity issue
This commit is contained in:
@@ -333,7 +333,7 @@ var Scrollbar = cc.Class({
|
||||
},
|
||||
|
||||
show: function() {
|
||||
this._autoHideRemainingTime = 0;
|
||||
this._autoHideRemainingTime = this.autoHideTime;
|
||||
this._setOpacity(this._opacity);
|
||||
},
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user