Skip to content

Commit

Permalink
Updated cursor code to be more compatible.
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjbradley committed Feb 26, 2012
1 parent 4600f7b commit 651d8b0
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion build/jquery.signaturepad.css
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,19 @@
}

.current .pad {
cursor: url("pen.png") 8 8, crosshair;
/**
* For cross browser compatibility, this should be an absolute URL
* In IE the cursor is relative to the HTML document
* In all other browsers the cursor is relative to the CSS file
*
* http://www.useragentman.com/blog/2011/12/21/cross-browser-css-cursor-images-in-depth/
*/
cursor: url("../build/pen.cur"), crosshair;
/**
* IE will ignore this line because of the hotspot position
* Unfortunately we need this twice, because some browsers ignore the hotspot inside the .cur
*/
cursor: url("pen.cur") 16 16, crosshair;
}

.typed {
Expand Down
Binary file added build/pen.cur
Binary file not shown.
Binary file removed build/pen.png
Binary file not shown.
Binary file modified pen.psd
Binary file not shown.

0 comments on commit 651d8b0

Please sign in to comment.