What is the reason for using the anchorNode rather than the focus node? Focus node usually indicates the point closest to current mouse position. E.g., a click+drag operation sets the anchor, and shifts the focus node to follow the mouse.