Break down `getSelectionStartFromPointer`