static float getRelativeX ( NativeEvent e , Element target ) { return ( e . getClientX ( ) - target . getAbsoluteLeft ( ) + target . getScrollLeft ( ) + target . getOwnerDocument ( ) . getScrollLeft ( ) ) / HtmlGraphics . experimentalScale ; }
Gets the event s x - position relative to a given element .