Gitlab CSE Unil

Commit 9b5b5af7 authored by Julien Furrer's avatar Julien Furrer
Browse files

Adjusted drawing tool

parent 6dd3a044
......@@ -100,6 +100,8 @@ define(["paper"], function (paper) {
_path.add(event.point);
},
minDistance: 5,
onMouseDrag: function(event) {
if(_path) {
_path.add(event.point);
......@@ -112,7 +114,7 @@ define(["paper"], function (paper) {
var newPath = _path.clone();
_path.remove();
_path = null;
newPath.add(event.point);
// newPath.add(event.point);
//newPath.fillColor = paper.project.currentStyle.fillColor;
//newPath.simplify(20);
//newPath.closed = true;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment