Take first on multiple files dropped

This commit is contained in:
luboslenco
2019-03-19 09:15:48 +01:00
parent e85679f4ac
commit 4d85d8d742
+2
View File
@@ -78,6 +78,8 @@ class App extends iron.Trait {
kha.System.notifyOnDropFiles(function(filePath:String) {
dropPath = StringTools.rtrim(filePath);
dropPath = StringTools.replace(dropPath, "%20", " "); // Linux can pass %20 on drop
dropPath = dropPath.split("file://")[0]; // Multiple files dropped on Linux, take first
var mouse = iron.system.Input.getMouse();
dropX = mouse.x;
dropY = mouse.y;