From e4364fe04b6c7c732163c2aa0d7d54b17a87d002 Mon Sep 17 00:00:00 2001 From: yumisims Date: Tue, 3 Mar 2026 14:28:03 +0000 Subject: [PATCH] stop picking up contigs in edit mode when click mouse --- PretextView.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/PretextView.cpp b/PretextView.cpp index c89dd74..e580319 100644 --- a/PretextView.cpp +++ b/PretextView.cpp @@ -3252,10 +3252,10 @@ Mouse(GLFWwindow* window, s32 button, s32 action, s32 mods) MouseMove(window, x, y); if (!Edit_Pixels.editing) UpdateScaffolds(); } - else if (button == GLFW_MOUSE_BUTTON_MIDDLE && Edit_Mode && action == GLFW_RELEASE && !Edit_Pixels.editing) + else if (button == GLFW_MOUSE_BUTTON_MIDDLE && Edit_Mode && action == GLFW_RELEASE && Edit_Pixels.selecting) { - Edit_Pixels.editing = 1; Edit_Pixels.selecting = 0; + if (!Edit_Pixels.editing) Edit_Pixels.editing = 1; MouseMove(window, x, y); } else if (button == GLFW_MOUSE_BUTTON_MIDDLE && Edit_Mode && action == GLFW_PRESS && !Edit_Pixels.editing) @@ -9593,10 +9593,10 @@ KeyBoard(GLFWwindow* window, s32 key, s32 scancode, s32 action, s32 mods) glfwGetCursorPos(window, &x, &y); MouseMove(window, x, y); } - else if (Edit_Mode && !Edit_Pixels.editing && action == GLFW_RELEASE) + else if (Edit_Mode && Edit_Pixels.selecting && action == GLFW_RELEASE) { - Edit_Pixels.editing = 1; Edit_Pixels.selecting = 0; + if (!Edit_Pixels.editing) Edit_Pixels.editing = 1; f64 x, y; glfwGetCursorPos(window, &x, &y); MouseMove(window, x, y);