Why doesn't the Repository Insights → Network graph support mouse wheel scrolling? #206897
🏷️ Discussion TypeQuestion 💬 Feature/Topic AreaCode Search and Navigation BodyHi everyone, I noticed that the Repository Insights → Network graph can only be navigated by clicking and dragging. The mouse scroll wheel doesn't seem to scroll the graph, and Shift + Mouse Wheel also doesn't provide horizontal scrolling. On repositories with a large commit history, dragging around the graph feels less efficient than using the mouse wheel. Many graph-based interfaces support scroll-wheel navigation or zooming, so I was curious whether this behavior is intentional. Questions
I'd appreciate any insights from the community or the GitHub team. Thanks! |
Replies: 3 comments 2 replies
|
GitHub’s Network graph is designed primarily for drag-based navigation and graph interaction, rather than traditional page scrolling. This is likely intentional because the graph is an interactive visualization where mouse-wheel input can be reserved for zooming or other graph controls. GitHub has not clearly documented a specific reason for not supporting normal mouse-wheel or Shift + wheel scrolling. For large repositories, adding scroll-wheel panning, smoother zoom controls, and improved navigation could make the Network graph much easier to use. |
|
As far as I know, this is simply how GitHub's Network graph is currently implemented. It relies on click-and-drag for navigation and doesn't support mouse wheel scrolling. I haven't found any official documentation explaining the design choice. If there isn't a technical limitation, adding support for mouse wheel scrolling (and perhaps Ctrl + Wheel for zooming) would make exploring large repository networks much more convenient. It would be a nice usability improvement for repositories with extensive commit histories. |
|
Hi there, This is a very well-formulated question! You are definitely not alone in noticing how clunky it feels to navigate a massive commit history using only click-and-drag. It is a common usability complaint among developers when working with the Insights tab. Here is a breakdown of the situation that you can use to frame your understanding or adapt as a community response:
Effective Workarounds Keyboard Navigation: Click once on the graph to focus it, then use the Left and Right Arrow keys to traverse the timeline horizontally. This is often faster and much less fatiguing than continuous dragging. Visual Studio Code (Git Graph): For a much smoother local experience, installing the Git Graph extension in VS Code is highly recommended. It natively supports scroll-wheel navigation, offers rich branch visualization, and allows you to interact with commits seamlessly. Git Bash: For quick, terminal-based visual insights, running git log --graph --oneline --all in Git Bash provides a highly readable and easily scrollable tree directly in your console. |
As far as I know, this is simply how GitHub's Network graph is currently implemented. It relies on click-and-drag for navigation and doesn't support mouse wheel scrolling. I haven't found any official documentation explaining the design choice.
If there isn't a technical limitation, adding support for mouse wheel scrolling (and perhaps Ctrl + Wheel for zooming) would make exploring large repository networks much more convenient. It would be a nice usability improvement for repositories with extensive commit histories.