Skip to content

Commit

Permalink
fix loading files waitng events in wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
Grantim committed May 2, 2023
1 parent 0e4ad02 commit d6defed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wasm/io_files.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ var open_files = function (e) {
}
_free(filenames);
}
// enforce several frames to toggle animation when popup closed
for (var i = 0; i < 500; i += 100)
setTimeout(function () { Module.ccall('emsPostEmptyEvent', 'void', ['number'], [1]); }, i);
};
reader.readAsArrayBuffer(file);
var filename = allocateUTF8(path);
Expand Down

0 comments on commit d6defed

Please sign in to comment.