code: function addOffset(element, event) {
    event.offsetX = Math.round(event.pageX - element.offset().left);
    event.offsetY = Math.round(event.pageY - element.offset().top);
    return event;
  }
docs: Add offset support to all browsers