diagrams: use Ctrl+drag to pan (Meta is global on KDE)

This commit is contained in:
Levi Neely 2026-07-29 16:45:01 +02:00
parent 931cadb3ce
commit 395f2890ae
2 changed files with 4 additions and 4 deletions

View File

@ -1469,7 +1469,7 @@ Item {
contentWidth: diagramZoomImg.width
contentHeight: diagramZoomImg.height
boundsBehavior: Flickable.StopAtBounds
interactive: false // disable default drag — we handle it via Meta+drag
interactive: false // disable default drag — we handle it via Ctrl+drag
Image {
id: diagramZoomImg
@ -1493,7 +1493,7 @@ Item {
property bool panning: false
onPressed: function(mouse) {
if (mouse.button === Qt.LeftButton && (mouse.modifiers & Qt.MetaModifier)) {
if (mouse.button === Qt.LeftButton && (mouse.modifiers & Qt.ControlModifier)) {
panning = true
startX = mouse.x
startY = mouse.y

View File

@ -2279,7 +2279,7 @@ ApplicationWindow {
contentWidth: diagramZoomImg.width
contentHeight: diagramZoomImg.height
boundsBehavior: Flickable.StopAtBounds
interactive: false // disable default drag — we handle it via Meta+drag
interactive: false // disable default drag — we handle it via Ctrl+drag
Image {
id: diagramZoomImg
@ -2302,7 +2302,7 @@ ApplicationWindow {
property bool panning: false
onPressed: function(mouse) {
if (mouse.button === Qt.LeftButton && (mouse.modifiers & Qt.MetaModifier)) {
if (mouse.button === Qt.LeftButton && (mouse.modifiers & Qt.ControlModifier)) {
panning = true
startX = mouse.x
startY = mouse.y