Vector scaledCenter = Vector.mult(center, target.getScaling());
Vector scaledTrans = Vector.sub(center, scaledCenter);
Vector modelPos = new Vector(screenPos.x, screenPos.y);
modelPos.sub(scaledTrans);
modelPos.div(target.getScaling());
modelPos.sub(target.getTranslate());
return modelPos;
}
private PreviewMouseEvent buildPreviewMouseEvent(MouseEvent evt, PreviewMouseEvent.Type type) {