bug fix in usage of setTimeout
This commit is contained in:
parent
c6d17398c7
commit
865349ee68
3 changed files with 5 additions and 5 deletions
|
@ -395,8 +395,8 @@ var _diagram;
|
||||||
function tick() {
|
function tick() {
|
||||||
_diagram.tick();
|
_diagram.tick();
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
tick(), 1000 / 60;
|
tick();
|
||||||
});
|
}, 1000 / 60);
|
||||||
}
|
}
|
||||||
function diagramOnResize() {
|
function diagramOnResize() {
|
||||||
_diagram.onresize();
|
_diagram.onresize();
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -473,8 +473,8 @@ let _diagram: Diagrams;
|
||||||
function tick(){
|
function tick(){
|
||||||
_diagram.tick();
|
_diagram.tick();
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
tick(), 1000/60;
|
tick();
|
||||||
});
|
}, 1000/60);
|
||||||
}
|
}
|
||||||
function diagramOnResize(){
|
function diagramOnResize(){
|
||||||
_diagram.onresize();
|
_diagram.onresize();
|
||||||
|
|
Loading…
Add table
Reference in a new issue