CoatiSoftware/Sourcetrail

Hold space to pan graph by dragging from anywhere

Offen

#713 geöffnet am 29.07.2019

 (0 Kommentare) (1 Reaktion) (0 zugewiesene Personen)C++ (1.310 Forks)batch import
featuregood first issue

Repository-Metriken

Stars
 (14.130 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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