fix determination of mouseover/mousedown position