Fix agent panel scroll while editing a past message (#30394)

This is similar to the `block_mouse_down` method added in #20649 (which
has a very similar motivation), but is more comprehensive in stopping
mouse events. Since I want to cherry-pick this to the releases, keeping
this change just to the agent panel. In a follow-up will replace
existing use of `block_mouse_down` to instead use this.

Release Notes:

- N/A
863d7ccb6dMichael Sloan committed on 5/9/2025, 3:33:33 PM· committed by GitHubparentd270f6b
2 files changedLine totals unavailable