src/ui/canvas.cpp

changeset 58
b7841cd31fb7
parent 57
5c0005f63319
child 61
4585d8d7a7ec
--- a/src/ui/canvas.cpp	Thu Feb 27 11:56:41 2020 +0200
+++ b/src/ui/canvas.cpp	Thu Feb 27 12:23:42 2020 +0200
@@ -27,7 +27,7 @@
 	this->highlighted = id;
 	this->totalMouseMove += (event->pos() - this->lastMousePosition).manhattanLength();
 	this->lastMousePosition = event->pos();
-	this->worldPosition = this->screenToModelCoordinates(this->lastMousePosition);
+	this->worldPosition = this->screenToModelCoordinates(this->lastMousePosition, geom::XY);
 	if (this->worldPosition.has_value())
 	{
 		this->worldPosition = glm::round(*this->worldPosition);

mercurial