Automation track loses focus when click on it

Hi -

I noticed when I have an audio track and its automation track both selected and zoomed in, when I click with the pencil tool in the automation track it collapses down to the un-zoomed in size. What is the easiest way to avoid this please?

Thanks!