How to find the DOM node path from Pos

Found DOMFromPos in edit/dompos.js .

I am trying to track the actual pixel location of the markRange from/to position, seems when I try to use the document “transform” event to do this, strange things happen, the positions gets shifted, maybe the positions have not yet settled? Perhaps I need to throttle the event handler.

Which event should I listen to properly tracking markRange Positions? Maybe the markRange should signal a transform?