Make sure that the mouse wheel can only be used when not already carrying out another action (closes #239).