Fixed timings for Bombe animation fast rotor

This commit is contained in:
n1474335 2019-02-10 21:00:36 +00:00 committed by s2224834
parent dd9cbbac77
commit 4db6199fd9

View File

@ -23,7 +23,7 @@
const bbox = rotor.getBBox();
const x = bbox.width/2 + bbox.x;
const y = bbox.height/2 + bbox.y;
const wait = row === 0 ? speed/26 : row === 1 ? speed : speed*26;
const wait = row === 0 ? speed/26/1.5 : row === 1 ? speed : speed*26;
rotor.setAttribute("transform", "rotate(" + startPos + ", " + x + ", " + y + ")");
@ -50,7 +50,7 @@
break;
}
}
}, speed/26 - 5);
}, speed/26/1.5 - 5);
}
// ]]>
</script>

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB