CoatiSoftware/Sourcetrail

Hold space to pan graph by dragging from anywhere

Open

#713 opened on Jul 29, 2019

View on GitHub
 (0 comments) (1 reaction) (0 assignees)C++ (14,130 stars) (1,310 forks)batch import
featuregood first issue

Description

like in Photoshop

Currently you can only pan the whole graph when clicking and dragging into the background area.

With this change, holding down space should allow to click anywhere to drag the whole graph, even when the mouse is currently over a node or edge.

Implementation suggestion:

  • QtGraphNode and QtGraphEdge need to ignore the mouse drag event when space is held down
  • QtGraphicsView needs to handle the drag when space is held down.

Contributor guide