Skip to content

Commit

Permalink
fix for some adder positioning edge cases
Browse files Browse the repository at this point in the history
Reported in hypothesis/h#371
  • Loading branch information
tilgovi committed Apr 12, 2013
1 parent d82c9b1 commit d45a366
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/annotator.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ util =
Math.max.apply(Math, all)

mousePosition: (e, offsetEl) ->
offset = $(offsetEl).offset()
offset = $(offsetEl).position()
{
top: e.pageY - offset.top,
left: e.pageX - offset.left
Expand Down

0 comments on commit d45a366

Please sign in to comment.