Fix midMenu
This commit is contained in:
parent
be2e55aea2
commit
f48e8dcf17
@ -324,6 +324,7 @@ editor.prototype.mapInit = function () {
|
|||||||
editor.currentFloorData.firstArrive = [];
|
editor.currentFloorData.firstArrive = [];
|
||||||
editor.currentFloorData.eachArrive = [];
|
editor.currentFloorData.eachArrive = [];
|
||||||
editor.currentFloorData.events = {};
|
editor.currentFloorData.events = {};
|
||||||
|
editor.currentFloorData.autoEvent = {};
|
||||||
editor.currentFloorData.changeFloor = {};
|
editor.currentFloorData.changeFloor = {};
|
||||||
editor.currentFloorData.afterBattle = {};
|
editor.currentFloorData.afterBattle = {};
|
||||||
editor.currentFloorData.afterGetItem = {};
|
editor.currentFloorData.afterGetItem = {};
|
||||||
|
|||||||
@ -501,9 +501,7 @@ editor_mappanel_wrapper = function (editor) {
|
|||||||
*/
|
*/
|
||||||
editor.uifunctions.hideMidMenu = function () {
|
editor.uifunctions.hideMidMenu = function () {
|
||||||
editor.uivalues.lastMoveE={buttons:0,clientX:0,clientY:0};
|
editor.uivalues.lastMoveE={buttons:0,clientX:0,clientY:0};
|
||||||
setTimeout(function () {
|
editor.dom.midMenu.style = 'display:none';
|
||||||
editor.dom.midMenu.style = 'display:none';
|
|
||||||
}, 100)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -120,10 +120,10 @@ editor_ui_wrapper = function (editor) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
//editor.mode.onmode('');
|
//editor.mode.onmode('');
|
||||||
if (e.button != 2 && !editor.isMobile) {
|
if (e.button != 2 && !editor.isMobile && clickpath.indexOf('midMenu') === -1) {
|
||||||
editor.uifunctions.hideMidMenu();
|
editor.uifunctions.hideMidMenu();
|
||||||
}
|
}
|
||||||
if (clickpath.indexOf('down') !== -1 && clickpath.indexOf('midMenu') === -1 && editor.isMobile && clickpath.indexOf('midMenu') === -1) {
|
if (clickpath.indexOf('down') !== -1 && clickpath.indexOf('midMenu') === -1 && editor.isMobile) {
|
||||||
editor.uifunctions.hideMidMenu();
|
editor.uifunctions.hideMidMenu();
|
||||||
}
|
}
|
||||||
if (clickpath.length >= 2 && clickpath[0].indexOf('id_') === 0) { editor.lastClickId = clickpath[0] }
|
if (clickpath.length >= 2 && clickpath[0].indexOf('id_') === 0) { editor.lastClickId = clickpath[0] }
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user