on xenial help sign in
off by one in the topleft corner too
commitc3791572cc2785be5150c42c01080ca7f35746cd authorLukáš Tinkl <lukas.tinkl@canonical.com> dateFri 26 Aug 2016, 17:39 (10 years ago) parent5d291b2
1 file changed+1−1
plugins/Cursor/MousePointer.cpp+1−1
plugins/Cursor/MousePointer.cpp+1−1
@@ -55,7 +55,7 @@ void MousePointer::handleMouseEvent(ulong timestamp, QPointF movement, Qt::Mouse
5555 const qreal sceneWidth = parentItem()->width();
5656 const qreal sceneHeight = parentItem()->height();
5757
58− if (newX < 0 && newY < m_panelHeight) { // top left corner
58+ if (newX <= 0 && newY < m_panelHeight) { // top left corner
5959 const auto distance = qSqrt(qPow(newX, 2) + qPow(newY-m_panelHeight, 2));
6060 Q_EMIT pushedTopLeftCorner(qAbs(distance), buttons);
6161 } else if (newX >= sceneWidth-1 && newY < m_panelHeight) { // top right corner