Able to open paint popup and move with the same button

This commit is contained in:
Yousef Khadadeh 2026-06-03 13:02:37 +03:00
parent ba34431be1
commit e35fd4fa79
2 changed files with 3 additions and 2 deletions

View file

@ -127,7 +127,7 @@ void DrawingProgram::input_mouse_button_callback(const InputManager::MouseButton
if(button.down) {
if(button.button == InputManager::MouseButton::RIGHT) {
if(!controls.middleClickHeld && !controls.leftClickHeld) {
if(!controls.leftClickHeld) {
if(rightClickPopupLocation.has_value())
clear_right_click_popup();
else