don't display acc data when AB added (#1483)
* don't display acc data when AB added * hide acc
This commit is contained in:
parent
bc024738be
commit
71e2ffb700
@ -720,6 +720,12 @@ path.sim-board {
|
|||||||
el.style.perspectiveOrigin = "50% 50% 50%";
|
el.style.perspectiveOrigin = "50% 50% 50%";
|
||||||
el.style.perspective = "30em";
|
el.style.perspective = "30em";
|
||||||
|
|
||||||
|
// don't display acc data when AB is on
|
||||||
|
if (state.buttonPairState.usesButtonAB) {
|
||||||
|
if (this.accTextX) this.accTextX.textContent = "";
|
||||||
|
if (this.accTextY) this.accTextY.textContent = "";
|
||||||
|
if (this.accTextZ) this.accTextZ.textContent = "";
|
||||||
|
} else {
|
||||||
// update text
|
// update text
|
||||||
if (acc.flags & AccelerometerFlag.X) {
|
if (acc.flags & AccelerometerFlag.X) {
|
||||||
if (!this.accTextX) {
|
if (!this.accTextX) {
|
||||||
@ -743,6 +749,7 @@ path.sim-board {
|
|||||||
this.accTextZ.textContent = `az:${z}`;
|
this.accTextZ.textContent = `az:${z}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private buildDom() {
|
private buildDom() {
|
||||||
this.element = <SVGSVGElement>svg.elt("svg")
|
this.element = <SVGSVGElement>svg.elt("svg")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user