[annotator-dev] Quartz margin comments

Daniel Cebrián Robles danielcebrianr at gmail.com
Wed Aug 21 14:18:45 UTC 2013


Hi all,
I have discovered the problem with the foundation css library. I was using
Annotator 1.2.7 release and the code to get the mouse position is:

Util.mousePosition = function(e, offsetEl) {
  return {
    top: e.pageY - offset.top,
    left: e.pageX - offset.left
  };

But, I have found the solution in github for this issue and it is solved.
But it is not in a release yet. The solution was:

Util.mousePosition = function(e, offsetEl) {
  var offset, _ref1;
  if ((_ref1 = $(offsetEl).css('position')) !== 'absolute' && _ref1 !==
'fixed' && _ref1 !== 'relative') {
    offsetEl = $(offsetEl).offsetParent()[0];
  }
  offset = $(offsetEl).offset();
  return {
    top: e.pageY - offset.top,
    left: e.pageX - offset.left
  };

Regards,

Daniel Cebrián.



2013/8/21 Randall Leeds <tilgovi at hypothes.is>

> Another one joins the party.
>
>
> http://qz.com/111748/you-can-now-leave-annotations-in-the-margins-of-quartz/
>
> _______________________________________________
> annotator-dev mailing list
> annotator-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/annotator-dev
> Unsubscribe: http://lists.okfn.org/mailman/options/annotator-dev
>
>


-- 
Daniel Cebrián Robles
Industrial Engineer
Spain Phone: +34 619 013 012
USA phone: +1 857 333-8696
Web: http://danielcebrian.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/annotator-dev/attachments/20130821/ee4c47d1/attachment-0002.html>


More information about the annotator-dev mailing list