static float getRelativeY ( NativeEvent e , Element target ) { return ( e . getClientY ( ) - target . getAbsoluteTop ( ) + target . getScrollTop ( ) + target . getOwnerDocument ( ) . getScrollTop ( ) ) / HtmlGraphics . experimentalScale ; }
Gets the event s y - position relative to a given element .