Commit 4807d9c8 authored by Emmet O'Neill's avatar Emmet O'Neill
Browse files

Revert "Freehand Tool: Shift-Vertical Drag can now be used to resize too."

This reverts commit 4cb4711b.

Dexterity considerations.

CCBUG:442544


(cherry picked from commit 366e42d4)
parent e715c267
Pipeline #97989 skipped with stage
......@@ -350,9 +350,7 @@ void KisToolFreehand::continueAlternateAction(KoPointerEvent *event, AlternateAc
const qreal effectiveMaxBrushSize = qMin(maxBrushSize, effectiveMaxDragSize / scaleX);
const qreal scaleCoeff = effectiveMaxBrushSize / effectiveMaxDragSize;
const bool useOffsetX = qAbs(offset.x()) > qAbs(offset.y());
const qreal largerOffset = useOffsetX ? offset.x() : -offset.y();
const qreal sizeDiff = scaleCoeff * largerOffset;
const qreal sizeDiff = scaleCoeff * offset.x() ;
if (qAbs(sizeDiff) > 0.01) {
KisPaintOpSettingsSP settings = currentPaintOpPreset()->settings();
......@@ -414,6 +412,7 @@ void KisToolFreehand::slotDoResizeBrush(qreal newSize)
settings->setPaintOpSize(newSize);
requestUpdateOutline(m_initialGestureDocPoint, 0);
}
QPointF KisToolFreehand::adjustPosition(const QPointF& point, const QPointF& strokeBegin)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment