diff --git a/src/plugins/shakecursor/shakedetector.cpp b/src/plugins/shakecursor/shakedetector.cpp index 246e5d0c85..0f4e69264f 100644 --- a/src/plugins/shakecursor/shakedetector.cpp +++ b/src/plugins/shakecursor/shakedetector.cpp @@ -72,7 +72,7 @@ std::optional ShakeDetector::update(QMouseEvent *event) const qreal boundsWidth = right - left; const qreal boundsHeight = bottom - top; const qreal diagonal = std::sqrt(boundsWidth * boundsWidth + boundsHeight * boundsHeight); - if (diagonal == 0) { + if (diagonal < 100) { return std::nullopt; }