Attempt to make this work on Firefox, which does not support offsetX/offsetY