Is there a way to determine the cursor's offset from the top of a textarea's view rather than its position?
While e.target.selectionStart
provides the cursor position, $el.scrollTop
gives the scroll offset of the textarea.
Any suggestions on how to calculate the offset of the cursor within the visible area?