Project owner:Eugene Lazutkin

normalizeEvent() normalizes the geometry of a DOM event. It normalizes the pageX, pageY, offsetX, offsetY, layerX and layerX properties of the event.


require(["dojo/dom-geometry"], function(domGeom){
  // e now has normalized geometry properties

Note: While dojo/_base/event::fix() will automatically normalize the geometry of an event, when dojo/on automatically normalizes DOM events, it does not do this (as it is expensive and not always necessary) and you will have to normalize these yourself.

See Also

Error in the documentation? Can’t find what you are looking for? Let us know!