Able to open paint popup and move with the same button
This commit is contained in:
parent
ba34431be1
commit
e35fd4fa79
2 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue