svg: fix incorrect event coordinates under certain conditions in FireFox