CoatiSoftware/Sourcetrail

Hold space to pan graph by dragging from anywhere

开放

#713 创建于 2019年7月29日

 (0 条评论) (1 个反应) (0 位负责人)C++ (1,310 个派生)batch import
featuregood first issue

仓库指标

星标
 (14,130 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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.

贡献者指南