diff --git a/Applications.cfg b/Applications.cfg index 133151fe..7811f5a8 100644 --- a/Applications.cfg +++ b/Applications.cfg @@ -239,7 +239,7 @@ path="/lib/MineOSInterface.lua", url="https://raw.githubusercontent.com/IgorTimofeev/OpenComputers/master/lib/MineOSInterface.lua", type="Library", - version=1.28, + version=1.29, }, { path="/lib/MineOSPaths.lua", diff --git a/lib/MineOSInterface.lua b/lib/MineOSInterface.lua index 75304810..fc6a18fa 100755 --- a/lib/MineOSInterface.lua +++ b/lib/MineOSInterface.lua @@ -192,13 +192,16 @@ local function iconEventHandler(mainContainer, object, eventData) elseif eventData[1] == "double_touch" and object:isClicked(eventData[3], eventData[4]) and eventData[5] == 0 then object.parent.parent.onDoubleClick(object, eventData) elseif eventData[1] == "drag" and object.parent.parent.iconConfigEnabled and object.lastTouchPosition then + -- Ебучие авторы мода, ну на кой хуй было делать drop-ивент без наличия drag? ПИДОРЫ + object.dragStarted = true object.localX = object.localX + eventData[3] - object.lastTouchPosition.x object.localY = object.localY + eventData[4] - object.lastTouchPosition.y object.lastTouchPosition.x, object.lastTouchPosition.y = eventData[3], eventData[4] mainContainer:draw() buffer.draw() - elseif eventData[1] == "drop" and object.parent.parent.iconConfigEnabled then + elseif eventData[1] == "drop" and object.parent.parent.iconConfigEnabled and object.dragStarted then + object.dragStarted = nil object.parent.parent.iconConfig[object.name .. (object.isDirectory and "/" or "")] = { x = object.localX, y = object.localY