Minor fix to killing the animation when the sim is killed
This commit is contained in:
@ -78,7 +78,7 @@ namespace pxsim.visuals {
|
||||
return this.getInnerHeight() * 0.6;
|
||||
}
|
||||
|
||||
onBoardStateChanged() {
|
||||
updateState() {
|
||||
if (!this.isVisible) {
|
||||
return;
|
||||
}
|
||||
@ -91,7 +91,6 @@ namespace pxsim.visuals {
|
||||
onComponentVisible() {
|
||||
super.onComponentVisible();
|
||||
this.isVisible = true;
|
||||
this.onBoardStateChanged();
|
||||
}
|
||||
|
||||
onComponentHidden() {
|
||||
|
@ -60,7 +60,7 @@ namespace pxsim.visuals {
|
||||
return this.getInnerHeight() / 4;
|
||||
}
|
||||
|
||||
onBoardStateChanged() {
|
||||
updateState() {
|
||||
if (!this.isVisible) {
|
||||
return;
|
||||
}
|
||||
@ -74,7 +74,6 @@ namespace pxsim.visuals {
|
||||
onComponentVisible() {
|
||||
super.onComponentVisible();
|
||||
this.isVisible = true;
|
||||
this.onBoardStateChanged();
|
||||
}
|
||||
|
||||
onComponentHidden() {
|
||||
|
Reference in New Issue
Block a user