ui: usability fixes

* reduced mouse drag sensibility when clicking on graph nodes
* also edit search element when cursor in front and pressing DELETE
* scroll to up to minimized snippet after minimizing when scrolled down far
This commit is contained in:
Eberhard Graether
2019-06-28 12:43:31 +02:00
parent 841a87469b
commit 5cc39824e0
7 changed files with 35 additions and 43 deletions
@@ -35,7 +35,7 @@ void QtGraphNodeComponentClickable::nodeMouseMoveEvent(QGraphicsSceneMouseEvent*
{
Vec2i mousePos = Vec2i(event->scenePos().x(), event->scenePos().y());
if ((mousePos - m_mousePos).getLength() > 1.0f)
if ((mousePos - m_mousePos).getLength() > 3.0f)
{
m_mouseMoved = true;
}