mirror of https://github.com/WerWolv/ImHex.git
fix: Main Menu items not being clickable at the outer most pixel
Closes #1020
This commit is contained in:
parent
80edaea392
commit
ac858b37ed
|
@ -408,9 +408,11 @@ namespace hex {
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const auto &[priority, menuItem] : ContentRegistry::Interface::impl::getMainMenuItems()) {
|
for (const auto &[priority, menuItem] : ContentRegistry::Interface::impl::getMainMenuItems()) {
|
||||||
|
ImGui::GetStyle().TouchExtraPadding = scaled(ImVec2(0, 2));
|
||||||
if (ImGui::BeginMenu(LangEntry(menuItem.unlocalizedName))) {
|
if (ImGui::BeginMenu(LangEntry(menuItem.unlocalizedName))) {
|
||||||
ImGui::EndMenu();
|
ImGui::EndMenu();
|
||||||
}
|
}
|
||||||
|
ImGui::GetStyle().TouchExtraPadding = ImVec2(0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (auto &[priority, menuItem] : ContentRegistry::Interface::impl::getMenuItems()) {
|
for (auto &[priority, menuItem] : ContentRegistry::Interface::impl::getMenuItems()) {
|
||||||
|
|
Loading…
Reference in New Issue