Skip to content

Commit 01efde3

Browse files
committed
Filebrowser now opens instantly, not after the user clicks on a random point on screen
1 parent 04a5d49 commit 01efde3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Assets/StandaloneFileBrowser/Plugins/StandaloneFileBrowser.jslib

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,7 @@ var StandaloneFileBrowserWebGLPlugin = {
4848
}
4949
document.body.appendChild(fileInput);
5050

51-
document.onmouseup = function() {
52-
fileInput.click();
53-
document.onmouseup = null;
54-
}
51+
fileInput.click();
5552
},
5653

5754
// Save file

0 commit comments

Comments
 (0)