# This patch file was generated by NetBeans IDE
# Following Index: paths are relative to: F:\Projects\gastronomia\modules\webfm\js
# This patch can be applied using context Tools: Patch action on respective folder.
# It uses platform neutral UTF-8 encoding and \n newlines.
# Above lines and this line are ignored by the patching process.
Index: webfm.js
--- webfm.js Base (BASE)
+++ webfm.js Locally Modified (Based On LOCAL)
@@ -4096,5 +4096,13 @@
  *  Returns the position of the mouse cursor based on the event object passed
  */
 Drupal.mousePosition = function(e) {
-  return { x: e.clientX + document.documentElement.scrollLeft, y: e.clientY + document.documentElement.scrollTop };
+  if ( e.pageX == null && e.clientX != null ) {
+      var doc = document.documentElement, body = document.body;
+      e.pageX = e.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc && doc.clientLeft || body && body.clientLeft || 0);
+      e.pageY = e.clientY + (doc && doc.scrollTop  || body && body.scrollTop  || 0) - (doc && doc.clientTop  || body && body.clientTop  || 0);
+  }
+  return {
+      x: e.pageX,
+      y: e.pageY
 };
+};
