CoatiSoftware/Sourcetrail

Hold space to pan graph by dragging from anywhere

Open

#713 创建于 2019年7月29日

在 GitHub 查看
 (0 评论) (1 反应) (0 负责人)C++ (14,130 star) (1,310 fork)batch import
featuregood first issue

描述

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.

贡献者指南