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() {
|
||||
_diagram.tick();
|
||||
setTimeout(function () {
|
||||
tick(), 1000 / 60;
|
||||
});
|
||||
tick();
|
||||
}, 1000 / 60);
|
||||
}
|
||||
function diagramOnResize() {
|
||||
_diagram.onresize();
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -473,8 +473,8 @@ let _diagram: Diagrams;
|
|||
function tick(){
|
||||
_diagram.tick();
|
||||
setTimeout(() => {
|
||||
tick(), 1000/60;
|
||||
});
|
||||
tick();
|
||||
}, 1000/60);
|
||||
}
|
||||
function diagramOnResize(){
|
||||
_diagram.onresize();
|
||||
|
|
Loading…
Add table
Reference in a new issue