Moving pointer position evaluation to getBoundingClientRect