diff -r 6ca6e8c647d4 -r 128efb9d148b src/ui/canvas.cpp --- a/src/ui/canvas.cpp Mon Jul 19 23:41:52 2021 +0300 +++ b/src/ui/canvas.cpp Tue Jul 20 01:22:01 2021 +0300 @@ -89,9 +89,6 @@ void Canvas::mouseReleaseEvent(QMouseEvent* event) { - MouseClickInfo info; - info.click = this->totalMouseMove < (2.0 / sqrt(2)) * 5.0; - emit mouseClick(info); if (this->totalMouseMove < (2.0 / sqrt(2)) * 5.0) { if (this->highlighted == ldraw::NULL_ID) @@ -105,6 +102,10 @@ this->compiler->setSelectedObjects(this->selection); emit selectionChanged(this->selection); this->update(); + MouseClickInfo info; + info.worldPosition = this->worldPosition; + info.invoker = this; + emit mouseClick(info); } PartRenderer::mouseReleaseEvent(event); }