mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
Merge remote-tracking branch 'fireball/master'
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
|||||||
|
|
||||||
|
2youyou2
|
||||||
|
dabingnn
|
||||||
|
jareguo
|
||||||
|
knoxHuang
|
||||||
|
nantas
|
||||||
|
natural-law
|
||||||
|
pandamicro
|
||||||
|
VisualSJ
|
||||||
|
zilongshanren
|
||||||
@@ -333,7 +333,7 @@ var Scrollbar = cc.Class({
|
|||||||
},
|
},
|
||||||
|
|
||||||
show: function() {
|
show: function() {
|
||||||
this._autoHideRemainingTime = 0;
|
this._autoHideRemainingTime = this.autoHideTime;
|
||||||
this._setOpacity(this._opacity);
|
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._hideScrollbar();
|
||||||
this.stopAutoScroll();
|
this.stopAutoScroll();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
onEnable: function () {
|
||||||
|
this._showScrollbar();
|
||||||
|
},
|
||||||
|
|
||||||
update: function(dt) {
|
update: function(dt) {
|
||||||
if (this._autoScrolling) {
|
if (this._autoScrolling) {
|
||||||
this._processAutoScrolling(dt);
|
this._processAutoScrolling(dt);
|
||||||
|
|||||||
Reference in New Issue
Block a user