set offsetX to 0 if there is no getBoundingClientRect func
ejecta compatible
bug fixed
bug fixed