Skip to content

Commit 8fe2f5a

Browse files
committed
Merge branch 'WebGL-fix'
* WebGL-fix: Filebrowser now opens instantly, not after the user clicks on a random point on screen
2 parents 54579b8 + 01efde3 commit 8fe2f5a

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)