Mouse wheel zoom on cockpit view automatically zooms back out on click

Bit confused here, bind what exactly to the right mouse button? There are multiple items being discussed and I would love to get this to work in the fashion you describe. What are your mouse settings for cockpit viewing.