Disable selection when patern menu is selected

This commit is contained in:
2026-01-10 21:40:24 +01:00
parent 95650f1a47
commit e8c0c460d9

View File

@@ -172,7 +172,7 @@ int main(int ac, char **av) {
mousePos.y / config_json["cell_size"].get<int>());
}
// Selection behaviour
if (!edit_ctrl && !play_ctrl) {
if (!edit_ctrl && !play_ctrl && !paterns_ctrl) {
if (gesture == GESTURE_TAP && !ImGui::IsWindowHovered(ImGuiHoveredFlags_AnyWindow)) {
sel_pos = snapToGrid(mousePos, cell_size_ctrl);
selecting = true;