1
0
mirror of synced 2025-01-18 17:14:13 +01:00

fix: Main Menu items not being clickable at the outer most pixel

Closes #1020
This commit is contained in:
WerWolv 2023-04-08 11:37:42 +02:00
parent 80edaea392
commit ac858b37ed

View File

@ -408,9 +408,11 @@ namespace hex {
}
for (const auto &[priority, menuItem] : ContentRegistry::Interface::impl::getMainMenuItems()) {
ImGui::GetStyle().TouchExtraPadding = scaled(ImVec2(0, 2));
if (ImGui::BeginMenu(LangEntry(menuItem.unlocalizedName))) {
ImGui::EndMenu();
}
ImGui::GetStyle().TouchExtraPadding = ImVec2(0, 0);
}
for (auto &[priority, menuItem] : ContentRegistry::Interface::impl::getMenuItems()) {