fix calculation of relative event position
change implementation of controls rounded rect

(due to buggy IE implementation of arcTo)