BezierTool: check segment.point first.

This commit is contained in:
Jonathan Puckey 2011-04-18 17:31:05 +02:00
parent 25b7219536
commit 114c058fc6

View file

@ -7,7 +7,7 @@
<script type="text/javascript" src="../../src/load.js"></script>
<script type="text/paperscript" canvas="canvas">
var path;
var types = ['handleIn', 'handleOut', 'point'];
var types = ['point', 'handleIn', 'handleOut'];
function findHandle(point) {
for (var i = 0, l = path.segments.length; i < l; i++) {
for (var j = 0; j < 3; j++) {