Merge pull request #278 from Superalgos/develop

Cockpit space fixes
This commit is contained in:
Luis Fernando Molina authored and GitHub committed 2020-10-05 19:01:43 +02:00
commit eecdcae883
2 files changed
+7 -6

No files matched your search

+2 -2
View File
@@ -72,7 +72,7 @@ function newCockpitSpace() {
storage = JSON.parse(localStorage)
thisObject.container.frame.position.y = storage.spacePosition
} else {
INITIAL_POSITION = 55
INITIAL_POSITION = browserCanvas.height - 55
thisObject.container.frame.position.y = browserCanvas.height * INITIAL_POSITION / 100 - COCKPIT_SPACE_HEIGHT
}
} else {
@@ -109,7 +109,7 @@ function newCockpitSpace() {
}
function toTop() {
thisObject.container.frame.position.y = COCKPIT_SPACE_HEIGHT
thisObject.container.frame.position.y = TOP_SPACE_HEIGHT
}
function toBottom() {
+5 -4
View File
@@ -60,7 +60,7 @@ function newTutorialSpace() {
let positionAtNodeCounter = 0
let timeMachineKeyPressedCounter = 0
let keyPressedCounter = 0
let sliderPositioned = 0
let sliderCounter = 0
let changeNodeConfigCounter = 0
let changeNodeConfigCounterWithEval = 0
let documentationCounter = 0
@@ -314,8 +314,9 @@ function newTutorialSpace() {
*/
return
}
if (sliderPositioned === false) {
sliderPositioned = true
sliderCounter++
if (sliderCounter === 10 || sliderCounter === 100) {
switch (config.slider) {
case "toTop": {
/*
@@ -791,7 +792,7 @@ function newTutorialSpace() {
}
function resetSlider() {
sliderPositioned = false
sliderCounter = 0
}
function changeNodeConfig() {