HitTesting example: Fix dragging of paths and segments.

This commit is contained in:
Jürg Lehni 2014-01-02 10:55:34 +01:00
parent c197f531a4
commit 469aa18f1a

View file

@ -89,13 +89,12 @@
function onMouseDrag(event) {
if (segment) {
segment.point = event.point;
segment.point += event.delta;
path.smooth();
}
if (movePath)
} else if (path) {
path.position += event.delta;
}
}
</script>
</head>
<body>