From 67aebedeb3c9dca62e2ae774d20bbae66d9c55e8 Mon Sep 17 00:00:00 2001 From: igor Date: Mon, 22 Jan 2018 11:29:03 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B5,=20=D0=BD=D1=83=20=D1=8D=D1=82?= =?UTF-8?q?=D0=BE=20=D0=BD=D0=B8=20=D0=B2=20=D0=BA=D0=B0=D0=BA=D0=B8=D0=B5?= =?UTF-8?q?=20=D0=B2=D0=BE=D1=80=D0=BE=D1=82=D0=B0=20=D1=83=D0=B6=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Applications.cfg | 2 +- lib/MineOSInterface.lua | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) 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