Disallow panning mid-operation

This fixes issue #78
This commit is contained in:
Philip Linde
2018-05-31 11:15:55 +02:00
committed by Philip Linde
parent b91cfe4ed3
commit b8dbbf77fe

View File

@@ -733,7 +733,7 @@ void Main_handler(void)
Button_Quit(BUTTON_QUIT);
}
if (Pan_shortcut_pressed && Current_operation!=OPERATION_PAN_VIEW)
if (Pan_shortcut_pressed && Current_operation!=OPERATION_PAN_VIEW && Operation_stack_size==0)
{
Hide_cursor();
Start_operation_stack(OPERATION_PAN_VIEW);