plugins/shakecursor: Make it easier to build up magnification

This commit is contained in:
Vlad Zahorodnii 2023-11-28 21:23:36 +02:00
parent 494e4a07f2
commit 0a5bd7397b

View file

@ -70,7 +70,7 @@ void ShakeCursorEffect::pointerEvent(MouseEvent *event)
.position = m_cursor->pos(),
.hotspot = m_cursor->hotspot(),
.size = m_cursor->geometry().size(),
.magnification = 1.0 + ShakeCursorConfig::magnification() * shakeFactor.value(),
.magnification = std::max(m_cursorMagnification, 1.0 + ShakeCursorConfig::magnification() * shakeFactor.value()),
});
m_resetCursorScaleTimer.start(1000);
} else {