gesture pitch & pan fix

This commit is contained in:
2025-07-13 00:28:53 +03:00
parent d403d0a242
commit 13d4e6cb75

View File

@@ -342,6 +342,7 @@ void Graphic::procGesture(QGesture * g) {
QPointF dp = -pg->delta();
dp.rx() /= getScaleX();
dp.ry() /= getScaleY();
dp.ry() = -dp.y();
selrect.translate(dp);
totalUpdate();
} break;
@@ -357,11 +358,7 @@ void Graphic::procGesture(QGesture * g) {
} break;
case Qt::TapAndHoldGesture: {
QTapAndHoldGesture * pg = (QTapAndHoldGesture *)g;
if (pg->state() == Qt::GestureStarted)
QMetaObject::invokeMethod(
this,
[this]() { showMenu(); },
Qt::QueuedConnection);
if (pg->state() == Qt::GestureStarted) QMetaObject::invokeMethod(this, [this]() { showMenu(); }, Qt::QueuedConnection);
} break;
default: break;
}