From ac858b37ed8fb081873ec2517b016f66c496c66d Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sat, 8 Apr 2023 11:37:42 +0200 Subject: [PATCH] fix: Main Menu items not being clickable at the outer most pixel Closes #1020 --- main/source/window/window.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main/source/window/window.cpp b/main/source/window/window.cpp index f7aca554f..738a14051 100644 --- a/main/source/window/window.cpp +++ b/main/source/window/window.cpp @@ -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()) {