Skip to content
Snippets Groups Projects
Commit aaebac25 authored by Hallvard Trætteberg's avatar Hallvard Trætteberg
Browse files

Fikset #3

parent 358c575f
No related branches found
No related tags found
No related merge requests found
Pipeline #46505 passed
......@@ -58,7 +58,7 @@ public class DraggableNodeController {
}
private void mouseDragged(final MouseEvent mouseEvent) {
if (currentNode.isPresent() && currentNode == mouseEvent.getSource()) {
if (currentNode.isPresent() && currentNode.get() == mouseEvent.getSource()) {
final double dx = mouseEvent.getSceneX() - startPoint.getX();
final double dy = mouseEvent.getSceneY() - startPoint.getY();
updateNode(dx, dy);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment