build/events/EventGenerator.js
function addOffset(element, event) {
  event.offsetX = Math.round(event.pageX - element.offset().left);
  event.offsetY = Math.round(event.pageY - element.offset().top);
  return event;
}
function addOffset(element, event) {
  event.offsetX = Math.round(event.pageX - element.offset().left);
  event.offsetY = Math.round(event.pageY - element.offset().top);
  return event;
}
function addOffset ( element , event ) { event . offsetX = Math . round ( event . pageX - element . offset ( ) . left ) ; event . offsetY = Math . round ( event . pageY - element . offset ( ) . top ) ; return event ; }
Add offset support to all browsers
Add offset support to all browsers