switching to screen coordinates

Generated javascript in Chrome: offsetX always equal to offsetY