Fix menubar closing when using touch ui
This commit is contained in:
@@ -121,6 +121,7 @@ class UIMenubar {
|
||||
var menuW = Std.int(App.defaultElementW * App.uiMenu.SCALE() * 2.0);
|
||||
UIMenu.menuX -= Std.int((menuW - ui._w) / 2) + Std.int(UIHeader.inst.headerh / 2);
|
||||
UIMenu.menuY += 4;
|
||||
UIMenu.keepOpen = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -847,6 +847,9 @@ class UINodes {
|
||||
menuCategory = i;
|
||||
popupX = wx + ui._x;
|
||||
popupY = wy + ui._y;
|
||||
if (Config.raw.touch_ui) {
|
||||
showMenuFirst = true;
|
||||
}
|
||||
}
|
||||
if (i < cats.length - 1) {
|
||||
ui._x += ew + 3;
|
||||
|
||||
Reference in New Issue
Block a user