Skip to content

Commit

Permalink
Set the pointer cursor for clickable arrows.
Browse files Browse the repository at this point in the history
  • Loading branch information
radarsat1 committed Apr 22, 2011
1 parent c6de259 commit 52f322b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,12 +228,14 @@ function create_arrow(left, right, sel)
line.setAttribute("stroke", "black");
line.setAttribute("fill", "none");
line.setAttribute("stroke-width", 2);
line.setAttribute("cursor", "pointer");

line.border = document.createElementNS(svgns, "path");
line.border.setAttribute("stroke", "blue");
line.border.setAttribute("fill", "none");
line.border.setAttribute("stroke-width", "10pt");
line.border.setAttribute("stroke-opacity", "0");
line.border.setAttribute("cursor", "pointer");

var L = fullOffset(left);
var R = fullOffset(right);
Expand Down

0 comments on commit 52f322b

Please sign in to comment.