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,12 +89,11 @@
function onMouseDrag(event) { function onMouseDrag(event) {
if (segment) { if (segment) {
segment.point = event.point; segment.point += event.delta;
path.smooth(); path.smooth();
} } else if (path) {
if (movePath)
path.position += event.delta; path.position += event.delta;
}
} }
</script> </script>
</head> </head>