[Bug] Middle-click autoscroll in sidebar scrolls the main document instead
Author: de-treCreated Oct 1, 2026Updated Oct 1, 2026
What happened?
Description
Middle-click autoscroll does not target the sidebar's own scrollable area.
In the Annotations panel and Ask AI chat, normal mouse-wheel scrolling works correctly. But when middle-click autoscroll is started inside the sidebar, moving the pointer up or down scrolls the main document view instead.
So the expectation would be: Middle-click autoscroll should target the scrollable container in which it was initiated:
- middle-click in the main document → scroll the document;
- middle-click in the sidebar → scroll the sidebar.
Steps to reproduce
- Open a Plan Review / Annotate session with a scrollable main document.
- Open the Annotations panel or Ask AI sidebar and make sure it is also vertically scrollable.
- Hover the sidebar and scroll with the mouse wheel - the sidebar scrolls correctly.
- Middle-click inside the sidebar to activate autoscroll.
- Move the pointer vertically.
Additional context
#1647 / #1648 addressed a related but separate scroll-target issue for keyboard scrolling; this report concerns middle-click autoscroll only.
Thanks for reading and considering this (again)!
Plannotator version
plannotator 0.27.19
OS
Windows
Agent
Claude Code
Where did it happen?
Plan review
Source: backnotprop/plannotator