diff options
Diffstat (limited to 'js/tools')
-rwxr-xr-x | js/tools/PenTool.js | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/js/tools/PenTool.js b/js/tools/PenTool.js index 779b7f16..39a1b15a 100755 --- a/js/tools/PenTool.js +++ b/js/tools/PenTool.js | |||
@@ -348,16 +348,17 @@ exports.PenTool = Montage.create(ShapeTool, { | |||
348 | 348 | ||
349 | var currMousePos = this._getUnsnappedPosition(event.pageX, event.pageY); | 349 | var currMousePos = this._getUnsnappedPosition(event.pageX, event.pageY); |
350 | if (currMousePos && this._selectedSubpath ){ | 350 | if (currMousePos && this._selectedSubpath ){ |
351 | var selAnchor = this._selectedSubpath.pickAnchor(currMousePos[0], currMousePos[1], currMousePos[2], this._PICK_POINT_RADIUS); | 351 | var selAnchorRetCode = this._selectedSubpath.pickAnchor(currMousePos[0], currMousePos[1], currMousePos[2], this._PICK_POINT_RADIUS); |
352 | if (selAnchor >=0) { | 352 | if (selAnchorRetCode[0] >=0) { |
353 | this._hoveredAnchorIndex = selAnchor; | 353 | this._hoveredAnchorIndex = selAnchorRetCode[0]; |
354 | var cursor = "url('images/cursors/penCursors/Pen_anchorSelect.png') 0 0, default"; | ||
355 | this.application.ninja.stage.drawingCanvas.style.cursor = cursor; | ||
354 | } else { | 356 | } else { |
355 | //detect if the current mouse position will hit the path | 357 | //detect if the current mouse position will hit the path |
356 | var pathHitTestData = this._selectedSubpath.pathHitTest(currMousePos[0], currMousePos[1], currMousePos[2], this._PICK_POINT_RADIUS); | 358 | var pathHitTestData = this._selectedSubpath.pathHitTest(currMousePos[0], currMousePos[1], currMousePos[2], this._PICK_POINT_RADIUS); |
357 | if (pathHitTestData[0]!==-1){ | 359 | if (pathHitTestData[0]!==-1){ |
358 | //change the cursor | 360 | //change the cursor |
359 | var cursor = "url('images/cursors/penAdd.png') 10 10,default"; | 361 | |
360 | this.application.ninja.stage.drawingCanvas.style.cursor = cursor; | ||
361 | } | 362 | } |
362 | } | 363 | } |
363 | } | 364 | } |